December 2000
Intermediate to advanced
816 pages
16h 57m
English
Table 10.2 lists all of Python's current set of standard exceptions. All exceptions are loaded into the interpreter as a built-in so they are ready before your script starts or by the time you receive the interpreter prompt, if running interactively.
All standard/built-in exceptions are derived from the root class Exception. There are currently two immediate subclasses of Exception: SystemExit and StandardError. All other built-in exceptions are subclasses of StandardError. Every level of indentation of an exception listed in Table 10.2 indicates one level of exception class derivation.
| Exception Name | Description |
|---|---|
| Exception[a] | root class for all exceptions |
| SystemExit | request termination ... |
Read now
Unlock full access