Https://docs.python.org/3/library/exceptions.html#exception-hierarchy
baseexception+--Systemexit+--Keyboardinterrupt+--Generatorexit+--Exception+--stopiteration+--stopasynciteration+--Arithmeticerror| +--Floatingpointerror| +--Overflowerror| +--Zerodivisionerror+--Assertionerror+--Attributeerror+--Buffererror+--Eoferror+--Importerror+--Modulenotfounderror+--Lookuperror| +--Indexerror| +--Keyerror+--Memoryerror+--Nameerror| +--Unboundlocalerror+--OSError| +--Blockingioerror| +--Childprocesserror| +--Connectionerror| | +--Brokenpipeerror| | +--Connectionabortederror| | +--Connectionrefusederror| | +--Connectionreseterror| +--Fileexistserror| +--Filenotfounderror| +--Interruptederror| +--Isadirectoryerror| +--Notadirectoryerror| +--Permissionerror| +--Processlookuperror| +--Timeouterror+--Referenceerror+--RuntimeError| +--Notimplementederror| +--Recursionerror+--SyntaxError| +--Indentationerror| +--Taberror+--Systemerror+--TypeError+--ValueError| +--Unicodeerror| +--Unicodedecodeerror| +--Unicodeencodeerror| +--Unicodetranslateerror+--Warning+--deprecationwarning+--pendingdeprecationwarning+--runtimewarning+--syntaxwarning+--userwarning+--futurewarning+--importwarning+--unicodewarning+--byteswarning+--resourcewarning
Python Exception class inheritance relationship