Skip to main content

PyErrArguments

Trait PyErrArguments 

pub trait PyErrArguments: Send + Sync {
    // Required method
    fn arguments(self, py: Python<'_>) -> Py<PyAny>;
}
Available on crate feature tls only.
Expand description

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

Required Methods§

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

Arguments for exception

Implementations on Foreign Types§

§

impl PyErrArguments for TryFromSliceError

§

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

§

impl PyErrArguments for DecodeUtf16Error

§

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

§

impl PyErrArguments for AddrParseError

§

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

§

impl PyErrArguments for ParseIntError

§

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

§

impl PyErrArguments for TryFromIntError

§

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

§

impl PyErrArguments for ParseFloatError

§

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

§

impl PyErrArguments for Error

§

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

§

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

§

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

Implementors§