Python 常见的错误类型和继承关系
2023-09-27 14:24:13 时间
Python所有的错误都是从BaseException
类派生
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
相关文章
- python并发编程之进程、线程、协程的调度原理(六)
- 【机器学习算法-python实现】採样算法的简单实现
- 安装python包,报权限错误
- sklearn:Python语言开发的通用机器学习库
- python 装饰器
- python自定义包或模块在Linux服务器导入错误的解决办法
- 解决Python错误-----SSL: CERTIFICATE_VERIFY_FAILED
- Python爬虫技术--基础篇--错误,调试和测试(中)
- 【python】【pycharm】+读写csv文件/其他格式配置文件
- Python之L.pop()和del L[i]
- 《Python高手之路》——第 1 章 项目开始 1.1 Python版本
- 全网首创Python泛娱乐新闻图片文字自动剪辑第2版
- 2021年CSDN小结,从无知的文科生到一名Python全栈技术顾问
- 《Python语言程序设计》——3.8 绘制带颜色和字体的图形
- 【转载】 python进程绑定CPU
- ubuntu18.04系统环境下使用vs code安装pylint检查python的代码错误
- Python之文件读取、写入和异常处理操作举例
- python 错误分析 TypeError: can only concatenate str (not “float“) to str
- 学习python第四天——Oracle分组
- 使用python内置的imghdr模块读取图像文件以修正错误的扩展名
- Python undefined symbol: PyUnicodeUCS4_DecodeUTF8错误修复
- 记录Python类与继承的一个错误
- Python里面的种种错误类型