-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathErrorTypes.py
121 lines (91 loc) · 2.87 KB
/
ErrorTypes.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#100 days of code: Error Types
#AssertionError
# Raised when the assert statement fails.
#Example -
#AttributeError
# Raised on the attribute assignment or reference fails.
#Example -
#EOFError
# Raised when the input() function hits the end-of-file condition.
#Example -
#FloatingPointError
# Raised when a floating point operation fails.
#Example -
#GeneratorExit
# Raised when a generator's close() method is called.
#Example -
#ImportError
# Raised when the imported module is not found.
#Example -
#IndentationError
# Raised when there is an incorrect indentation.
#Example -
#IndexError
# Raised when the index of a sequence is out of range.
#Example -
#KeyboardInterrupt
# Raised when the user hits the interrupt key (Ctrl+c or delete).
#Example -
#KeyError
# Raised when a key is not found in a dictionary.
#Example -
#MemoryError
# Raised when an operation runs out of memory.
#Example -
#NameError
# Raised when a variable is not found in the local or global scope.
#Example -
#NotImplementedError
# Raised by abstract methods.
#Example -
#OSError
# Raised when a system operation causes a system-related error.
#Example -
#OverflowError
# Raised when the result of an arithmetic operation is too large to be represented.
#Example -
#ReferenceError
# Raised when a weak reference proxy is used to access a garbage collected referent.
#Example -
#RuntimeError
# Raised when an error does not fall under any other category.
#Example -
#StopIteration
# Raised by the next() function to indicate that there is no further item to be returned by the iterator.
#Example -
#SyntaxError
# Raised by the parser when a syntax error is encountered.
#Example -
#TabError
# Raised when the indentation consists of inconsistent tabs and spaces.
#Example -
#SystemError
# Raised when the interpreter detects internal error.
#Example -
#SystemExit
# Raised by the sys.exit() function.
#Example -
#TypeError
# Raised when a function or operation is applied to an object of an incorrect type.
#Example -
#UnboundLocalError
# Raised when a reference is made to a local variable in a function or method, but no value has been bound to that variable.
#Example -
#UnicodeDecodeError
# Raised when a Unicode-related error occurs during decoding.
#Example -
#UnicodeEncodeError
# Raised when a Unicode-related error occurs during encoding.
#Example -
#UnicodeError
# Raised when a Unicode-related encoding or decoding error occurs.
#Example -
#UnicodeTranslateError
# Raised when a Unicode-related error occurs during translation.
#Example -
#ValueError
# Raised when a function gets an argument of correct type but improper value.
#Example -
#ZeroDivisionError
# Raised when the second operand of a division or module operation is zero.
#Example -