pyo3::err

Trait PyErrArguments

Source
pub trait PyErrArguments: Send + Sync {
    // Required method
    fn arguments(self, py: Python<'_>) -> PyObject;
}
Expand description

Helper conversion trait that allows to use custom arguments for lazy exception construction.

Required Methods§

Source

fn arguments(self, py: Python<'_>) -> PyObject

Arguments for exception

Implementations on Foreign Types§

Source§

impl PyErrArguments for IntoStringError

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl PyErrArguments for NulError

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl PyErrArguments for FromUtf8Error

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl PyErrArguments for FromUtf16Error

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl PyErrArguments for TryFromSliceError

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl PyErrArguments for DecodeUtf16Error

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl PyErrArguments for AddrParseError

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl PyErrArguments for ParseFloatError

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl PyErrArguments for ParseIntError

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl PyErrArguments for TryFromIntError

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl PyErrArguments for ParseBoolError

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl PyErrArguments for Utf8Error

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl PyErrArguments for Error

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Source§

impl<W: Send + Sync> PyErrArguments for IntoInnerError<W>

Source§

fn arguments(self, py: Python<'_>) -> PyObject

Implementors§

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here