summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2002-03-28 20:53:22 (GMT)
committerSkip Montanaro <skip@pobox.com>2002-03-28 20:53:22 (GMT)
commitbb6bbc45c07c4d3182f58a0f9768c1902d0c7083 (patch)
treea0d08ff0317b1b4c7521364e22c4a27260fa2e3d
parentff413af605d7aab610272c5668bc870ebcbf56ef (diff)
downloadcpython-bb6bbc45c07c4d3182f58a0f9768c1902d0c7083.zip
cpython-bb6bbc45c07c4d3182f58a0f9768c1902d0c7083.tar.gz
cpython-bb6bbc45c07c4d3182f58a0f9768c1902d0c7083.tar.bz2
add exception class hierarchy. This should probably be done differently,
but at least the content is there.
-rw-r--r--Doc/lib/libexcs.tex44
1 files changed, 44 insertions, 0 deletions
diff --git a/Doc/lib/libexcs.tex b/Doc/lib/libexcs.tex
index f4b1d15..c865eea 100644
--- a/Doc/lib/libexcs.tex
+++ b/Doc/lib/libexcs.tex
@@ -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}