baseexception +-- systemexit +-- keyboardinterrupt +-- generatorexit +-- exception +-- stopiteration + -- standarderror | +-- buffererror | +-- ArithmeticError | | +-- FloatingPointError | | +-- OverflowError | | +-- ZeroDivisionError | +-- AssertionError | +-- attributeerror | +-- environmenterror | | +-- ioerror | | +-- OSError | | +-- windowserror (Windows) | | +-- VMSError (VMS) | +-- EOFError | +-- importerror | +-- lookuperror | | +-- IndexError | | +-- KeyError | +-- memoryerror | +-- nameerror | | +-- unboundlocalerror | +-- ReferenceError | +-- RuntimeError | | +-- NotImplementedError | +-- SyntaxError | | +-- indentationerror | | +-- taberror | +-- systemerror | +-- TypeError | +-- ValueError | +-- UnicodeError | +-- unicodedecodeerror | +-- UnicodeEncodeError | +-- UnicodeTranslateError +-- Warning +-- deprecationwarning +-- pendingdeprecationwarning +-- Runtimewarning +-- syntaxwarning +-- userwarning +-- futurewarning +-- ImportWarning +-- UnicodeWarning +-- Byteswarning
Python2 type of exception