summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-12-19 04:27:54 (GMT)
committerGuido van Rossum <guido@python.org>2000-12-19 04:27:54 (GMT)
commit1367b837972da86909bb9b01b22d3bfba7a093ed (patch)
tree4d86345ae48308b70fa228a16271a2bf3ff3d048 /Doc
parent035f7e88c82770ab18a9d37ee3a1814c5347d374 (diff)
downloadcpython-1367b837972da86909bb9b01b22d3bfba7a093ed.zip
cpython-1367b837972da86909bb9b01b22d3bfba7a093ed.tar.gz
cpython-1367b837972da86909bb9b01b22d3bfba7a093ed.tar.bz2
Document warning categories.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libexcs.tex26
1 files changed, 26 insertions, 0 deletions
diff --git a/Doc/lib/libexcs.tex b/Doc/lib/libexcs.tex
index 0324a8a..30b4ef5 100644
--- a/Doc/lib/libexcs.tex
+++ b/Doc/lib/libexcs.tex
@@ -330,3 +330,29 @@ For class exceptions, \function{str()} returns only the message.
zero. The associated value is a string indicating the type of the
operands and the operation.
\end{excdesc}
+
+
+\setindexsubitem{(built-in warning category)}
+
+The following exceptions are used as warning categories; see the
+\module{warnings} module for more information.
+
+\begin{excdesc}{Warning}
+Base class for warning categories.
+\end{excdesc}
+
+\begin{excdesc}{UserWarning}
+Base class for warnings generated by user code.
+\end{excdesc}
+
+\begin{excdesc}{DeprecationWarning}
+Base class for warnings about deprecated features.
+\end{excdesc}
+
+\begin{excdesc}{SyntaxWarning}
+Base class for warnings about dubious syntax
+\end{excdesc}
+
+\begin{excdesc}{RuntimeWarning}
+Base class for warnings about dubious runtime behavior.
+\end{excdesc}