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§
- asyncio
- Exceptions defined in Python’s
asynciomodule. - socket
- Exceptions defined in Python’s
socketmodule.
Structs§
- PyArithmetic
Error - Represents Python’s
ArithmeticErrorexception. - PyAssertion
Error - Represents Python’s
AssertionErrorexception. - PyAttribute
Error - Represents Python’s
AttributeErrorexception. - PyBase
Exception - Represents Python’s
BaseExceptionexception. - PyBlockingIO
Error - Represents Python’s
BlockingIOErrorexception. - PyBroken
Pipe Error - Represents Python’s
BrokenPipeErrorexception. - PyBuffer
Error - Represents Python’s
BufferErrorexception. - PyBytes
Warning - Represents Python’s
BytesWarningexception. - PyChild
Process Error - Represents Python’s
ChildProcessErrorexception. - PyConnection
Aborted Error - Represents Python’s
ConnectionAbortedErrorexception. - PyConnection
Error - Represents Python’s
ConnectionErrorexception. - PyConnection
Refused Error - Represents Python’s
ConnectionRefusedErrorexception. - PyConnection
Reset Error - Represents Python’s
ConnectionResetErrorexception. - PyDeprecation
Warning - Represents Python’s
DeprecationWarningexception. - PyEOF
Error - Represents Python’s
EOFErrorexception. - PyEnvironment
Error - Represents Python’s
EnvironmentErrorexception. - PyException
- Represents Python’s
Exceptionexception. - PyFile
Exists Error - Represents Python’s
FileExistsErrorexception. - PyFile
NotFound Error - Represents Python’s
FileNotFoundErrorexception. - PyFloating
Point Error - Represents Python’s
FloatingPointErrorexception. - PyFuture
Warning - Represents Python’s
FutureWarningexception. - PyGenerator
Exit - Represents Python’s
GeneratorExitexception. - PyIO
Error - Represents Python’s
IOErrorexception. - PyImport
Error - Represents Python’s
ImportErrorexception. - PyImport
Warning - Represents Python’s
ImportWarningexception. - PyIndex
Error - Represents Python’s
IndexErrorexception. - PyInterrupted
Error - Represents Python’s
InterruptedErrorexception. - PyIsA
Directory Error - Represents Python’s
IsADirectoryErrorexception. - PyKey
Error - Represents Python’s
KeyErrorexception. - PyKeyboard
Interrupt - Represents Python’s
KeyboardInterruptexception. - PyLookup
Error - Represents Python’s
LookupErrorexception. - PyMemory
Error - Represents Python’s
MemoryErrorexception. - PyModule
NotFound Error - Represents Python’s
ModuleNotFoundErrorexception. - PyName
Error - Represents Python’s
NameErrorexception. - PyNotA
Directory Error - Represents Python’s
NotADirectoryErrorexception. - PyNot
Implemented Error - Represents Python’s
NotImplementedErrorexception. - PyOS
Error - Represents Python’s
OSErrorexception. - PyOverflow
Error - Represents Python’s
OverflowErrorexception. - PyPending
Deprecation Warning - Represents Python’s
PendingDeprecationWarningexception. - PyPermission
Error - Represents Python’s
PermissionErrorexception. - PyProcess
Lookup Error - Represents Python’s
ProcessLookupErrorexception. - PyRecursion
Error - Represents Python’s
RecursionErrorexception. - PyReference
Error - Represents Python’s
ReferenceErrorexception. - PyResource
Warning - Represents Python’s
ResourceWarningexception. - PyRuntime
Error - Represents Python’s
RuntimeErrorexception. - PyRuntime
Warning - Represents Python’s
RuntimeWarningexception. - PyStop
Async Iteration - Represents Python’s
StopAsyncIterationexception. - PyStop
Iteration - Represents Python’s
StopIterationexception. - PySyntax
Error - Represents Python’s
SyntaxErrorexception. - PySyntax
Warning - Represents Python’s
SyntaxWarningexception. - PySystem
Error - Represents Python’s
SystemErrorexception. - PySystem
Exit - Represents Python’s
SystemExitexception. - PyTimeout
Error - Represents Python’s
TimeoutErrorexception. - PyType
Error - Represents Python’s
TypeErrorexception. - PyUnbound
Local Error - Represents Python’s
UnboundLocalErrorexception. - PyUnicode
Decode Error - Represents Python’s
UnicodeDecodeErrorexception. - PyUnicode
Encode Error - Represents Python’s
UnicodeEncodeErrorexception. - PyUnicode
Error - Represents Python’s
UnicodeErrorexception. - PyUnicode
Translate Error - Represents Python’s
UnicodeTranslateErrorexception. - PyUnicode
Warning - Represents Python’s
UnicodeWarningexception. - PyUser
Warning - Represents Python’s
UserWarningexception. - PyValue
Error - Represents Python’s
ValueErrorexception. - PyWarning
- Represents Python’s
Warningexception. - PyZero
Division Error - Represents Python’s
ZeroDivisionErrorexception.