Built-in exceptions are contained in the exceptions module, which is always loaded prior to the execution of any program. Exceptions are defined as classes. The following exceptions serve as base classes for all the other exceptions:
The root class for all exceptions. All built-in exceptions are derived from this class. User-defined exceptions should use this as a base class.
The base class for all built-in exceptions except for SystemExit and StopIteration.
The base class for arithmetic exceptions, including OverflowError, ZeroDivisionError, and FloatingPointError.
The base class for indexing and key errors, including IndexError and KeyError.
The base class ...