]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add exception class hierarchy. This should probably be done differently,
authorSkip Montanaro <skip@pobox.com>
Thu, 28 Mar 2002 20:53:22 +0000 (20:53 +0000)
committerSkip Montanaro <skip@pobox.com>
Thu, 28 Mar 2002 20:53:22 +0000 (20:53 +0000)
but at least the content is there.

Doc/lib/libexcs.tex

index f4b1d154eea5ac8726ab1426ea34f3191d88538e..c865eea58a6fbd6b039e1aa641f2740a1720d6c3 100644 (file)
@@ -383,3 +383,47 @@ Base class for warnings about dubious syntax
 \begin{excdesc}{RuntimeWarning}
 Base class for warnings about dubious runtime behavior.
 \end{excdesc}
+
+The full Exception class hierarchy is:
+
+\begin{verbatim}
+    Exception
+     +-- SystemExit
+     +-- StopIteration
+     +-- StandardError
+     |    +-- KeyboardInterrupt
+     |    +-- ImportError
+     |    +-- EnvironmentError
+     |    |    +-- IOError
+     |    |    +-- OSError
+     |    |         +-- WindowsError
+     |    +-- EOFError
+     |    +-- RuntimeError
+     |    |    +-- NotImplementedError
+     |    +-- NameError
+     |    |    +-- UnboundLocalError
+     |    +-- AttributeError
+     |    +-- SyntaxError
+     |    |    +-- IndentationError
+     |    |         +-- TabError
+     |    +-- TypeError
+     |    +-- AssertionError
+     |    +-- LookupError
+     |    |    +-- IndexError
+     |    |    +-- KeyError
+     |    +-- ArithmeticError
+     |    |    +-- OverflowError
+     |    |    +-- ZeroDivisionError
+     |    |    +-- FloatingPointError
+     |    +-- ValueError
+     |    |    +-- UnicodeError
+     |    +-- ReferenceError
+     |    +-- SystemError
+     |    +-- MemoryError
+     +---Warning
+         +-- UserWarning
+         +-- DeprecationWarning
+         +-- SyntaxWarning
+         +-- OverflowWarning
+         +-- RuntimeWarning
+\end{verbatim}