devela::_dep::pyo3

Trait PyErrArguments

pub trait PyErrArguments: Send + Sync {
    // Required method
    fn arguments(self, py: Python<'_>) -> Py<PyAny>;
}
Available on crate features dep_pyo3 and std 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

Implementors§