Python Exception Hierarchy (C) 2018-2021 T.Birnthaler OSTC GmbH ========================== Doku --> http://docs.python.org/3/library/exceptions.html#exception-hierarchy http://docs.python.org/3/library/builtins.html +---------------------------------+-----------------------------------------+ | BaseException | Zsfg. ALLE Exceptions | +---------------------------------+-----------------------------------------+ | SystemExit | Ausgelöst durch sys.exit() | | KeyboardInterrupt | Ausgelöst durch "Strg-C" | | GeneratorExit | Ausgelöst durch generator.close() | | Exception | Zsfg. sinnvollerweise abzufangende Exc. | +---------------------------------+-----------------------------------------+ | StopIteration | Automatisch am Ende einer Collection | | StopAsyncIteration | | | ArithmeticError | Arithmetische Fehler | | FloatingPointError | Fließkommafehler | | OverflowError | Fließkommaüberlauf | | ZeroDivisionError | Division durch 0 | | AssertionError | Zusicherung "assert" verletzt | | AttributeError | Unbekanntes Objekt-Attribut | | BufferError | | | EOFError | Dateiende erreicht | | ImportError | Modul nicht gefunden | | ModuleNotFoundError | | | LookupError | | | IndexError | Index von Tupel/Liste/String zu groß | | KeyError | Key von Dictionary unbekannt | | MemoryError | | | NameError | Unbekannter Name | | UnboundLocalError | Funktionsvariable lokal + global | +---------------------------------+-----------------------------------------+ | OSError | Zsfg. aller Betriebssystemfehler | | BlockingIOError | | | ChildProcessError | | | ConnectionError | Verbindungsfehler | | BrokenPipeError | | | ConnectionAbortedError | | | ConnectionRefusedError | | | ConnectionResetError | | | FileExistsError | Datei vorhanden | | FileNotFoundError | Datei NICHT vorhanden | | InterruptedError | | | IsADirectoryError | Verz. vorhanden | | NotADirectoryError | verz. NICHT vorhanden | | PermissionError | Zugriffsrecht fehlt | | ProcessLookupError | | | TimeoutError | | +---------------------------------+-----------------------------------------+ | ReferenceError | | | RuntimeError | Laufzeitfehler | | NotImplementedError | Funktion nicht implementiert | | RecursionError | Zu hohe Rekursionstiefe (> 1000) | | SyntaxError | Syntax falsch | | IndentationError | Einrückung falsch | | TabError | Tabulator + Leerzeichen gemischt | | SystemError | | | TypeError | Datentypfehler | | ValueError | Wertfehler | | UnicodeError | Unicodefehler | | UnicodeDecodeError | | | UnicodeEncodeError | | | UnicodeTranslateError | | +---------------------------------+-----------------------------------------+ | Warning | Zsfg. aller Warnungen | | DeprecationWarning | Veraltete Anweisung | | PendingDeprecationWarning | | | RuntimeWarning | | | SyntaxWarning | | | UserWarning | Basisklasse für Benutzer-Warnungen | | FutureWarning | | | ImportWarning | | | UnicodeWarning | | | BytesWarning | | | ResourceWarning | | +---------------------------------+-----------------------------------------+