Python's exception system provides a way to signal error conditions and other disruptions in normal processing, and also a way for programs to recover from these conditions.
Section 25.1, “Definitions of exception terms”.
Section 25.2, “Life cycle of an exception”.
Section 25.3, “Built-in exceptions”.