Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e15132

Browse files
committed
Added documentation for NotImplementedError. Fred (I'm sure) will
sanitize for your protection :-)
1 parent 3695b12 commit 1e15132

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Doc/lib/libexcs.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,15 @@ \section{Built-in Exceptions}
241241
more.)
242242
\end{excdesc}
243243

244+
\begin{excdesc}{NotImplementedError}
245+
\versionadded{1.5.2}
246+
This exception is derived from \exception{RuntimeError}. Its
247+
purpose is to provide a standard exception to be used when modeling
248+
abstract class methods. Abstract base class methods should raise
249+
this exception when they expect derived classes to override the
250+
method.
251+
\end{excdesc}
252+
244253
\begin{excdesc}{SyntaxError}
245254
% XXXJH xref to these functions?
246255
Raised when the parser encounters a syntax error. This may occur in

0 commit comments

Comments
 (0)