Built-in Exceptions
|
Raised when |
|
Raised when attribute assignment or reference fails |
|
Raised when the |
|
Raised when a floating point operation fails |
|
Raised when a generator's |
|
Raised when the imported module is not found |
|
Raised when index of a sequence is out of range |
|
Raised when a key is not found in a dictionary |
|
Raised when the user hits interrupt key ( |
|
Raised when an operation runs out of memory |
|
Raised when a variable is not found in local or global scope |
|
Raised by abstract methods |
|
Raised when system operation causes system related error |
|
Raised when result of an arithmetic operation is too large to be represented |
|
Raised when a weak reference proxy is used to access a garbage collected referent |
|
Raised when an error does not fall under any other category |
|
Raised by |
|
Raised by parser when syntax error is encountered |
|
Raised when there is incorrect indentation |
|
Raised when indentation consists of inconsistent tabs and spaces |
|
Raised when interpreter detects internal error |
|
Raised by |
|
Raised when a function or operation is applied to an object of incorrect type |
|
Raised when a reference is made to a local variable in a function or method, but no value has been bound to that variable |
|
Raised when an Unicode-related encoding or decoding error occurs |
|
Raised when an Unicode-related error occurs during encoding |
|
Raised when an Unicode-related error occurs during decoding |
|
Raised when an Unicode-related error occurs during translating |
|
Raised when a function gets argument of correct type but improper value |
|
Raised when second operand of division or modulo operation is zero |
Notes
- Based on the cheat sheet from Programiz.
- Converted and extended by tomy0000000.