Module pyo3::exceptions
source · Expand description
Exception and warning types defined by Python.
The structs in this module represent Python’s built-in exceptions and warnings, while the modules comprise structs representing errors defined in Python code.
The latter are created with the
import_exception macro, which you can use
yourself to import Python classes that are ultimately derived from
BaseException.
Modules
Structs
- Represents Python’s
ArithmeticErrorexception. - Represents Python’s
AssertionErrorexception. - Represents Python’s
AttributeErrorexception. - Represents Python’s
BaseExceptionexception. - Represents Python’s
BlockingIOErrorexception. - Represents Python’s
BrokenPipeErrorexception. - Represents Python’s
BufferErrorexception. - Represents Python’s
BytesWarningexception. - Represents Python’s
ChildProcessErrorexception. - Represents Python’s
ConnectionAbortedErrorexception. - Represents Python’s
ConnectionErrorexception. - Represents Python’s
ConnectionRefusedErrorexception. - Represents Python’s
ConnectionResetErrorexception. - Represents Python’s
DeprecationWarningexception. - Represents Python’s
EOFErrorexception. - Represents Python’s
EncodingWarningexception. - Represents Python’s
EnvironmentErrorexception. - Represents Python’s
Exceptionexception. - Represents Python’s
FileExistsErrorexception. - Represents Python’s
FileNotFoundErrorexception. - Represents Python’s
FloatingPointErrorexception. - Represents Python’s
FutureWarningexception. - Represents Python’s
GeneratorExitexception. - Represents Python’s
IOErrorexception. - Represents Python’s
ImportErrorexception. - Represents Python’s
ImportWarningexception. - Represents Python’s
IndexErrorexception. - Represents Python’s
InterruptedErrorexception. - Represents Python’s
IsADirectoryErrorexception. - Represents Python’s
KeyErrorexception. - Represents Python’s
KeyboardInterruptexception. - Represents Python’s
LookupErrorexception. - Represents Python’s
MemoryErrorexception. - Represents Python’s
ModuleNotFoundErrorexception. - Represents Python’s
NameErrorexception. - Represents Python’s
NotADirectoryErrorexception. - Represents Python’s
NotImplementedErrorexception. - Represents Python’s
OSErrorexception. - Represents Python’s
OverflowErrorexception. - Represents Python’s
PendingDeprecationWarningexception. - Represents Python’s
PermissionErrorexception. - Represents Python’s
ProcessLookupErrorexception. - Represents Python’s
RecursionErrorexception. - Represents Python’s
ReferenceErrorexception. - Represents Python’s
ResourceWarningexception. - Represents Python’s
RuntimeErrorexception. - Represents Python’s
RuntimeWarningexception. - Represents Python’s
StopAsyncIterationexception. - Represents Python’s
StopIterationexception. - Represents Python’s
SyntaxErrorexception. - Represents Python’s
SyntaxWarningexception. - Represents Python’s
SystemErrorexception. - Represents Python’s
SystemExitexception. - Represents Python’s
TimeoutErrorexception. - Represents Python’s
TypeErrorexception. - Represents Python’s
UnboundLocalErrorexception. - Represents Python’s
UnicodeDecodeErrorexception. - Represents Python’s
UnicodeEncodeErrorexception. - Represents Python’s
UnicodeErrorexception. - Represents Python’s
UnicodeTranslateErrorexception. - Represents Python’s
UnicodeWarningexception. - Represents Python’s
UserWarningexception. - Represents Python’s
ValueErrorexception. - Represents Python’s
Warningexception. - Represents Python’s
ZeroDivisionErrorexception.