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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl PyErrArguments for AddrParseError

§

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

§

impl PyErrArguments for DecodeUtf16Error

§

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

§

impl PyErrArguments for ParseFloatError

§

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 TryFromSliceError

§

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

Implementors§