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.
Macros§
Structs§
- PyArithmeticError 
- Represents Python’s ArithmeticErrorexception.
- PyAssertionError 
- Represents Python’s AssertionErrorexception.
- PyAttributeError 
- Represents Python’s AttributeErrorexception.
- PyBaseException 
- Represents Python’s BaseExceptionexception.
- PyBlockingIOError 
- Represents Python’s BlockingIOErrorexception.
- PyBrokenPipe Error 
- Represents Python’s BrokenPipeErrorexception.
- PyBufferError 
- Represents Python’s BufferErrorexception.
- PyBytesWarning 
- Represents Python’s BytesWarningexception.
- PyChildProcess Error 
- Represents Python’s ChildProcessErrorexception.
- PyConnectionAborted Error 
- Represents Python’s ConnectionAbortedErrorexception.
- PyConnectionError 
- Represents Python’s ConnectionErrorexception.
- PyConnectionRefused Error 
- Represents Python’s ConnectionRefusedErrorexception.
- PyConnectionReset Error 
- Represents Python’s ConnectionResetErrorexception.
- PyDeprecationWarning 
- Represents Python’s DeprecationWarningexception.
- PyEOFError 
- Represents Python’s EOFErrorexception.
- PyEnvironmentError 
- Represents Python’s EnvironmentErrorexception.
- PyException
- Represents Python’s Exceptionexception.
- PyFileExists Error 
- Represents Python’s FileExistsErrorexception.
- PyFileNotFound Error 
- Represents Python’s FileNotFoundErrorexception.
- PyFloatingPoint Error 
- Represents Python’s FloatingPointErrorexception.
- PyFutureWarning 
- Represents Python’s FutureWarningexception.
- PyGeneratorExit 
- Represents Python’s GeneratorExitexception.
- PyIOError 
- Represents Python’s IOErrorexception.
- PyImportError 
- Represents Python’s ImportErrorexception.
- PyImportWarning 
- Represents Python’s ImportWarningexception.
- PyIndexError 
- Represents Python’s IndexErrorexception.
- PyInterruptedError 
- Represents Python’s InterruptedErrorexception.
- PyIsADirectory Error 
- Represents Python’s IsADirectoryErrorexception.
- PyKeyError 
- Represents Python’s KeyErrorexception.
- PyKeyboardInterrupt 
- Represents Python’s KeyboardInterruptexception.
- PyLookupError 
- Represents Python’s LookupErrorexception.
- PyMemoryError 
- Represents Python’s MemoryErrorexception.
- PyModuleNotFound Error 
- Represents Python’s ModuleNotFoundErrorexception.
- PyNameError 
- Represents Python’s NameErrorexception.
- PyNotADirectory Error 
- Represents Python’s NotADirectoryErrorexception.
- PyNotImplemented Error 
- Represents Python’s NotImplementedErrorexception.
- PyOSError 
- Represents Python’s OSErrorexception.
- PyOverflowError 
- Represents Python’s OverflowErrorexception.
- PyPendingDeprecation Warning 
- Represents Python’s PendingDeprecationWarningexception.
- PyPermissionError 
- Represents Python’s PermissionErrorexception.
- PyProcessLookup Error 
- Represents Python’s ProcessLookupErrorexception.
- PyRecursionError 
- Represents Python’s RecursionErrorexception.
- PyReferenceError 
- Represents Python’s ReferenceErrorexception.
- PyResourceWarning 
- Represents Python’s ResourceWarningexception.
- PyRuntimeError 
- Represents Python’s RuntimeErrorexception.
- PyRuntimeWarning 
- Represents Python’s RuntimeWarningexception.
- PyStopAsync Iteration 
- Represents Python’s StopAsyncIterationexception.
- PyStopIteration 
- Represents Python’s StopIterationexception.
- PySyntaxError 
- Represents Python’s SyntaxErrorexception.
- PySyntaxWarning 
- Represents Python’s SyntaxWarningexception.
- PySystemError 
- Represents Python’s SystemErrorexception.
- PySystemExit 
- Represents Python’s SystemExitexception.
- PyTimeoutError 
- Represents Python’s TimeoutErrorexception.
- PyTypeError 
- Represents Python’s TypeErrorexception.
- PyUnboundLocal Error 
- Represents Python’s UnboundLocalErrorexception.
- PyUnicodeDecode Error 
- Represents Python’s UnicodeDecodeErrorexception.
- PyUnicodeEncode Error 
- Represents Python’s UnicodeEncodeErrorexception.
- PyUnicodeError 
- Represents Python’s UnicodeErrorexception.
- PyUnicodeTranslate Error 
- Represents Python’s UnicodeTranslateErrorexception.
- PyUnicodeWarning 
- Represents Python’s UnicodeWarningexception.
- PyUserWarning 
- Represents Python’s UserWarningexception.
- PyValueError 
- Represents Python’s ValueErrorexception.
- PyWarning
- Represents Python’s Warningexception.
- PyZeroDivision Error 
- Represents Python’s ZeroDivisionErrorexception.