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
asyncio
module. - socket
- Exceptions defined in Python’s
socket
module.
Macros§
Structs§
- PyArithmetic
Error - Represents Python’s
ArithmeticError
exception. - PyAssertion
Error - Represents Python’s
AssertionError
exception. - PyAttribute
Error - Represents Python’s
AttributeError
exception. - PyBase
Exception - Represents Python’s
BaseException
exception. - PyBlockingIO
Error - Represents Python’s
BlockingIOError
exception. - PyBroken
Pipe Error - Represents Python’s
BrokenPipeError
exception. - PyBuffer
Error - Represents Python’s
BufferError
exception. - PyBytes
Warning - Represents Python’s
BytesWarning
exception. - PyChild
Process Error - Represents Python’s
ChildProcessError
exception. - PyConnection
Aborted Error - Represents Python’s
ConnectionAbortedError
exception. - PyConnection
Error - Represents Python’s
ConnectionError
exception. - PyConnection
Refused Error - Represents Python’s
ConnectionRefusedError
exception. - PyConnection
Reset Error - Represents Python’s
ConnectionResetError
exception. - PyDeprecation
Warning - Represents Python’s
DeprecationWarning
exception. - PyEOF
Error - Represents Python’s
EOFError
exception. - PyEnvironment
Error - Represents Python’s
EnvironmentError
exception. - PyException
- Represents Python’s
Exception
exception. - PyFile
Exists Error - Represents Python’s
FileExistsError
exception. - PyFile
NotFound Error - Represents Python’s
FileNotFoundError
exception. - PyFloating
Point Error - Represents Python’s
FloatingPointError
exception. - PyFuture
Warning - Represents Python’s
FutureWarning
exception. - PyGenerator
Exit - Represents Python’s
GeneratorExit
exception. - PyIO
Error - Represents Python’s
IOError
exception. - PyImport
Error - Represents Python’s
ImportError
exception. - PyImport
Warning - Represents Python’s
ImportWarning
exception. - PyIndex
Error - Represents Python’s
IndexError
exception. - PyInterrupted
Error - Represents Python’s
InterruptedError
exception. - PyIsA
Directory Error - Represents Python’s
IsADirectoryError
exception. - PyKey
Error - Represents Python’s
KeyError
exception. - PyKeyboard
Interrupt - Represents Python’s
KeyboardInterrupt
exception. - PyLookup
Error - Represents Python’s
LookupError
exception. - PyMemory
Error - Represents Python’s
MemoryError
exception. - PyModule
NotFound Error - Represents Python’s
ModuleNotFoundError
exception. - PyName
Error - Represents Python’s
NameError
exception. - PyNotA
Directory Error - Represents Python’s
NotADirectoryError
exception. - PyNot
Implemented Error - Represents Python’s
NotImplementedError
exception. - PyOS
Error - Represents Python’s
OSError
exception. - PyOverflow
Error - Represents Python’s
OverflowError
exception. - PyPending
Deprecation Warning - Represents Python’s
PendingDeprecationWarning
exception. - PyPermission
Error - Represents Python’s
PermissionError
exception. - PyProcess
Lookup Error - Represents Python’s
ProcessLookupError
exception. - PyRecursion
Error - Represents Python’s
RecursionError
exception. - PyReference
Error - Represents Python’s
ReferenceError
exception. - PyResource
Warning - Represents Python’s
ResourceWarning
exception. - PyRuntime
Error - Represents Python’s
RuntimeError
exception. - PyRuntime
Warning - Represents Python’s
RuntimeWarning
exception. - PyStop
Async Iteration - Represents Python’s
StopAsyncIteration
exception. - PyStop
Iteration - Represents Python’s
StopIteration
exception. - PySyntax
Error - Represents Python’s
SyntaxError
exception. - PySyntax
Warning - Represents Python’s
SyntaxWarning
exception. - PySystem
Error - Represents Python’s
SystemError
exception. - PySystem
Exit - Represents Python’s
SystemExit
exception. - PyTimeout
Error - Represents Python’s
TimeoutError
exception. - PyType
Error - Represents Python’s
TypeError
exception. - PyUnbound
Local Error - Represents Python’s
UnboundLocalError
exception. - PyUnicode
Decode Error - Represents Python’s
UnicodeDecodeError
exception. - PyUnicode
Encode Error - Represents Python’s
UnicodeEncodeError
exception. - PyUnicode
Error - Represents Python’s
UnicodeError
exception. - PyUnicode
Translate Error - Represents Python’s
UnicodeTranslateError
exception. - PyUnicode
Warning - Represents Python’s
UnicodeWarning
exception. - PyUser
Warning - Represents Python’s
UserWarning
exception. - PyValue
Error - Represents Python’s
ValueError
exception. - PyWarning
- Represents Python’s
Warning
exception. - PyZero
Division Error - Represents Python’s
ZeroDivisionError
exception.