]> granicus.if.org Git - python/commitdiff
Document warning categories.
authorGuido van Rossum <guido@python.org>
Tue, 19 Dec 2000 04:27:54 +0000 (04:27 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 19 Dec 2000 04:27:54 +0000 (04:27 +0000)
Doc/lib/libexcs.tex

index 0324a8af433b5ba2bfa4d8356fb5517e812c525e..30b4ef516467e7a6835e3f61e2e9284d7f763055 100644 (file)
@@ -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}