devela::_dep::pyo3

Trait ToPyErr

pub trait ToPyErr { }
Available on crate features dep_pyo3 and std only.
Expand description

Python exceptions that can be converted to PyErr.

This is used to implement [From<Bound<'_, T>> for PyErr].

Users should not need to implement this trait directly. It is implemented automatically in the crate::import_exception! and crate::create_exception! macros.

Implementors§

§

impl ToPyErr for CancelledError

§

impl ToPyErr for IncompleteReadError

§

impl ToPyErr for InvalidStateError

§

impl ToPyErr for LimitOverrunError

§

impl ToPyErr for QueueEmpty

§

impl ToPyErr for QueueFull

§

impl ToPyErr for TimeoutError

§

impl ToPyErr for gaierror

§

impl ToPyErr for herror

§

impl ToPyErr for timeout

§

impl ToPyErr for PyArithmeticError

§

impl ToPyErr for PyAssertionError

§

impl ToPyErr for PyAttributeError

§

impl ToPyErr for PyBaseException

§

impl ToPyErr for PyBlockingIOError

§

impl ToPyErr for PyBrokenPipeError

§

impl ToPyErr for PyBufferError

§

impl ToPyErr for PyBytesWarning

§

impl ToPyErr for PyChildProcessError

§

impl ToPyErr for PyConnectionAbortedError

§

impl ToPyErr for PyConnectionError

§

impl ToPyErr for PyConnectionRefusedError

§

impl ToPyErr for PyConnectionResetError

§

impl ToPyErr for PyDeprecationWarning

§

impl ToPyErr for PyEOFError

§

impl ToPyErr for PyEncodingWarning

§

impl ToPyErr for PyEnvironmentError

§

impl ToPyErr for PyException

§

impl ToPyErr for PyFileExistsError

§

impl ToPyErr for PyFileNotFoundError

§

impl ToPyErr for PyFloatingPointError

§

impl ToPyErr for PyFutureWarning

§

impl ToPyErr for PyGeneratorExit

§

impl ToPyErr for PyIOError

§

impl ToPyErr for PyImportError

§

impl ToPyErr for PyImportWarning

§

impl ToPyErr for PyIndexError

§

impl ToPyErr for PyInterruptedError

§

impl ToPyErr for PyIsADirectoryError

§

impl ToPyErr for PyKeyError

§

impl ToPyErr for PyKeyboardInterrupt

§

impl ToPyErr for PyLookupError

§

impl ToPyErr for PyMemoryError

§

impl ToPyErr for PyModuleNotFoundError

§

impl ToPyErr for PyNameError

§

impl ToPyErr for PyNotADirectoryError

§

impl ToPyErr for PyNotImplementedError

§

impl ToPyErr for PyOSError

§

impl ToPyErr for PyOverflowError

§

impl ToPyErr for PyPendingDeprecationWarning

§

impl ToPyErr for PyPermissionError

§

impl ToPyErr for PyProcessLookupError

§

impl ToPyErr for PyRecursionError

§

impl ToPyErr for PyReferenceError

§

impl ToPyErr for PyResourceWarning

§

impl ToPyErr for PyRuntimeError

§

impl ToPyErr for PyRuntimeWarning

§

impl ToPyErr for PyStopAsyncIteration

§

impl ToPyErr for PyStopIteration

§

impl ToPyErr for PySyntaxError

§

impl ToPyErr for PySyntaxWarning

§

impl ToPyErr for PySystemError

§

impl ToPyErr for PySystemExit

§

impl ToPyErr for PyTimeoutError

§

impl ToPyErr for PyTypeError

§

impl ToPyErr for PyUnboundLocalError

§

impl ToPyErr for PyUnicodeDecodeError

§

impl ToPyErr for PyUnicodeEncodeError

§

impl ToPyErr for PyUnicodeError

§

impl ToPyErr for PyUnicodeTranslateError

§

impl ToPyErr for PyUnicodeWarning

§

impl ToPyErr for PyUserWarning

§

impl ToPyErr for PyValueError

§

impl ToPyErr for PyWarning

§

impl ToPyErr for PyZeroDivisionError

§

impl ToPyErr for PanicException