python 内置错误类型 Built-in Exceptions

 1 BaseException
 2  +-- SystemExit
 3  +-- KeyboardInterrupt
 4  +-- GeneratorExit
 5  +-- Exception
 6       +-- StopIteration
 7       +-- ArithmeticError
 8       |    +-- FloatingPointError
 9       |    +-- OverflowError
10       |    +-- ZeroDivisionError
11       +-- AssertionError
12       +-- AttributeError
13       +-- BufferError
14       +-- EOFError
15       +-- ImportError
16       +-- LookupError
17       |    +-- IndexError
18       |    +-- KeyError
19       +-- MemoryError
20       +-- NameError
21       |    +-- UnboundLocalError
22       +-- OSError
23       |    +-- BlockingIOError
24       |    +-- ChildProcessError
25       |    +-- ConnectionError
26       |    |    +-- BrokenPipeError
27       |    |    +-- ConnectionAbortedError
28       |    |    +-- ConnectionRefusedError
29       |    |    +-- ConnectionResetError
30       |    +-- FileExistsError
31       |    +-- FileNotFoundError
32       |    +-- InterruptedError
33       |    +-- IsADirectoryError
34       |    +-- NotADirectoryError
35       |    +-- PermissionError
36       |    +-- ProcessLookupError
37       |    +-- TimeoutError
38       +-- ReferenceError
39       +-- RuntimeError
40       |    +-- NotImplementedError
41       +-- SyntaxError
42       |    +-- IndentationError
43       |         +-- TabError
44       +-- SystemError
45       +-- TypeError
46       +-- ValueError
47       |    +-- UnicodeError
48       |         +-- UnicodeDecodeError
49       |         +-- UnicodeEncodeError
50       |         +-- UnicodeTranslateError
51       +-- Warning
52            +-- DeprecationWarning
53            +-- PendingDeprecationWarning
54            +-- RuntimeWarning
55            +-- SyntaxWarning
56            +-- UserWarning
57            +-- FutureWarning
58            +-- ImportWarning
59            +-- UnicodeWarning
60            +-- BytesWarning
61            +-- ResourceWarning

https://docs.python.org/3.4/library/exceptions.html

posted @ 2015-12-19 15:19  cn_Net  阅读(370)  评论(0编辑  收藏  举报