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 18.1, “Definitions of exception terms”.
Section 18.2, “Life cycle of an exception”.
Section 18.3, “Built-in exceptions”.