]> granicus.if.org Git - python/commitdiff
Added documentation for NotImplementedError. Fred (I'm sure) will
authorBarry Warsaw <barry@python.org>
Tue, 1 Dec 1998 19:19:21 +0000 (19:19 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 1 Dec 1998 19:19:21 +0000 (19:19 +0000)
sanitize for your protection :-)

Doc/lib/libexcs.tex

index ff5ef2259d1e4bbe04e0f1257bca97a96af5f522..10b2245457411e720cdad08bea9cdc67bbf8a1bb 100644 (file)
@@ -241,6 +241,15 @@ Raised when an \keyword{assert} statement fails.
   more.)
 \end{excdesc}
 
+\begin{excdesc}{NotImplementedError}
+  \versionadded{1.5.2}
+  This exception is derived from \exception{RuntimeError}.  Its
+  purpose is to provide a standard exception to be used when modeling
+  abstract class methods.  Abstract base class methods should raise
+  this exception when they expect derived classes to override the
+  method.
+\end{excdesc}
+
 \begin{excdesc}{SyntaxError}
 % XXXJH xref to these functions?
   Raised when the parser encounters a syntax error.  This may occur in