Scroll up two lines in that file you linked to:

exception Exception¶
All built-in, non-system-exiting exceptions are derived from this class. *All user-defined exceptions should also be derived from this class.*