python的内置异常
标签:process python erer byte rmi recursion ase dep nic
内置异常的类层级结构如下:
BaseException
-- SystemExit
-- KeyboardInterrupt
-- GeneratorExit
-- Exception
-- StopIteration
-- StopAsyncIteration
-- ArithmeticError
| -- FloatingPointError
| -- OverflowError
| -- ZeroDivisionError
-- AssertionError
-- AttributeError
-- BufferError
-- EOFError
-- ImportError
| -- ModuleNotFoundError
-- LookupError
| -- IndexError
| -- KeyError
-- MemoryError
-- NameError
| -- UnboundLocalError
-- OSError
| -- BlockingIOError
| -- ChildProcessError
| -- ConnectionError
| | -- BrokenPipeError
| | -- ConnectionAbortedError
| | -- ConnectionRefusedError
| | -- ConnectionResetError
| -- FileExistsError
| -- FileNotFoundError
| -- InterruptedError
| -- IsADirectoryError
| -- NotADirectoryError
| -- PermissionError
| -- ProcessLookupError
| -- TimeoutError
-- ReferenceError
-- RuntimeError
| -- NotImplementedError
| -- RecursionError
-- SyntaxError
| -- IndentationError
| -- TabError
-- SystemError
-- TypeError
-- ValueError
| -- UnicodeError
| -- UnicodeDecodeError
| -- UnicodeEncodeError
| -- UnicodeTranslateError
-- Warning
-- DeprecationWarning
-- PendingDeprecationWarning
-- RuntimeWarning
-- SyntaxWarning
-- UserWarning
-- FutureWarning
-- ImportWarning
-- UnicodeWarning
-- BytesWarning
-- ResourceWarning
摘自https://docs.python.org/zh-cn/3/library/exceptions.html#Exception
python的内置异常
标签:process python erer byte rmi recursion ase dep nic
温馨提示: 本文由杰米博客推荐,转载请保留链接: https://www.jmwww.net/file/biancheng/12166.html