pyo3

Trait ToPyErr

Source
pub trait ToPyErr { }
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§

Source§

impl ToPyErr for CancelledError

Source§

impl ToPyErr for IncompleteReadError

Source§

impl ToPyErr for InvalidStateError

Source§

impl ToPyErr for LimitOverrunError

Source§

impl ToPyErr for QueueEmpty

Source§

impl ToPyErr for QueueFull

Source§

impl ToPyErr for TimeoutError

Source§

impl ToPyErr for gaierror

Source§

impl ToPyErr for herror

Source§

impl ToPyErr for timeout

Source§

impl ToPyErr for PyArithmeticError

Source§

impl ToPyErr for PyAssertionError

Source§

impl ToPyErr for PyAttributeError

Source§

impl ToPyErr for PyBaseException

Source§

impl ToPyErr for PyBlockingIOError

Source§

impl ToPyErr for PyBrokenPipeError

Source§

impl ToPyErr for PyBufferError

Source§

impl ToPyErr for PyBytesWarning

Source§

impl ToPyErr for PyChildProcessError

Source§

impl ToPyErr for PyConnectionAbortedError

Source§

impl ToPyErr for PyConnectionError

Source§

impl ToPyErr for PyConnectionRefusedError

Source§

impl ToPyErr for PyConnectionResetError

Source§

impl ToPyErr for PyDeprecationWarning

Source§

impl ToPyErr for PyEOFError

Source§

impl ToPyErr for PyEnvironmentError

Source§

impl ToPyErr for PyException

Source§

impl ToPyErr for PyFileExistsError

Source§

impl ToPyErr for PyFileNotFoundError

Source§

impl ToPyErr for PyFloatingPointError

Source§

impl ToPyErr for PyFutureWarning

Source§

impl ToPyErr for PyGeneratorExit

Source§

impl ToPyErr for PyIOError

Source§

impl ToPyErr for PyImportError

Source§

impl ToPyErr for PyImportWarning

Source§

impl ToPyErr for PyIndexError

Source§

impl ToPyErr for PyInterruptedError

Source§

impl ToPyErr for PyIsADirectoryError

Source§

impl ToPyErr for PyKeyError

Source§

impl ToPyErr for PyKeyboardInterrupt

Source§

impl ToPyErr for PyLookupError

Source§

impl ToPyErr for PyMemoryError

Source§

impl ToPyErr for PyModuleNotFoundError

Source§

impl ToPyErr for PyNameError

Source§

impl ToPyErr for PyNotADirectoryError

Source§

impl ToPyErr for PyNotImplementedError

Source§

impl ToPyErr for PyOSError

Source§

impl ToPyErr for PyOverflowError

Source§

impl ToPyErr for PyPendingDeprecationWarning

Source§

impl ToPyErr for PyPermissionError

Source§

impl ToPyErr for PyProcessLookupError

Source§

impl ToPyErr for PyRecursionError

Source§

impl ToPyErr for PyReferenceError

Source§

impl ToPyErr for PyResourceWarning

Source§

impl ToPyErr for PyRuntimeError

Source§

impl ToPyErr for PyRuntimeWarning

Source§

impl ToPyErr for PyStopAsyncIteration

Source§

impl ToPyErr for PyStopIteration

Source§

impl ToPyErr for PySyntaxError

Source§

impl ToPyErr for PySyntaxWarning

Source§

impl ToPyErr for PySystemError

Source§

impl ToPyErr for PySystemExit

Source§

impl ToPyErr for PyTimeoutError

Source§

impl ToPyErr for PyTypeError

Source§

impl ToPyErr for PyUnboundLocalError

Source§

impl ToPyErr for PyUnicodeDecodeError

Source§

impl ToPyErr for PyUnicodeEncodeError

Source§

impl ToPyErr for PyUnicodeError

Source§

impl ToPyErr for PyUnicodeTranslateError

Source§

impl ToPyErr for PyUnicodeWarning

Source§

impl ToPyErr for PyUserWarning

Source§

impl ToPyErr for PyValueError

Source§

impl ToPyErr for PyWarning

Source§

impl ToPyErr for PyZeroDivisionError

Source§

impl ToPyErr for PanicException