Exception hierarchy (异常继承关系)

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 (资源警告)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值