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