Exception hierarchy (异常继承关系)
###########################################################################
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 (锁定IO错误)
| +-- ChildProcessError (子进程错误)
| +-- ConnectionError (连接错误)
| | +-- BrokenPipeError (打破管道错误)
| | +-- ConnectionAbortedError (连接失败错误)
| | +-- ConnectionRefusedError (连接拒绝错误)
| | +-- ConnectionResetError (连接重置错误)
| +-- FileExistsError (文件存在错误)
| +-- FileNotFoundError (文件没有找到错误)
| +-- InterruptedError (中断错误)
| +-- IsADirectoryError (是目录错误)
| +-- NotADirectoryError (不是目录错误)
| +-- PermissionError (允许错误)
| +-- ProcessLookupError (进程查找错误)
| +-- TimeoutError (超时错误)
+-- ReferenceError (参考错误)
+-- RuntimeError (运行时错误)
| +-- NotImplementedError (不是应用错误)
| +-- RecursionError (递归错误)
+-- SyntaxError (格式错误)
| +-- IndentationError (缩进错误)
| +-- TabError (Tab错误)
+-- SystemError (系统错误)
+-- TypeError (格式错误)
+-- ValueError (值错误)
| +-- UnicodeError (U编码错误)
| +-- UnicodeDecodeError (U解编码错误)
| +-- UnicodeEncodeError (U编码错误)
| +-- UnicodeTranslateError (U翻译错误)
+-- Warning (警告)
+-- DeprecationWarning (反对警告)
+-- PendingDeprecationWarning (挂起反对警告)
+-- RuntimeWarning (运行警告)
+-- SyntaxWarning (格式警告)
+-- UserWarning (用户警告)
+-- FutureWarning (未来警告)
+-- ImportWarning (导入警告)
+-- UnicodeWarning (U编码警告)
+-- BytesWarning (字节警告)
+-- ResourceWarning (资源警告)
Exception hierarchy (异常继承关系)
最新推荐文章于 2022-05-05 20:22:21 发布