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

Skip to content

Commit 6d26f4b

Browse files
committed
Moved NotImplementedError into alphabetical order, and reword
description.
1 parent 1e15132 commit 6d26f4b

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

Doc/lib/libexcs.tex

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,13 @@ \section{Built-in Exceptions}
213213
not be found.
214214
\end{excdesc}
215215

216+
\begin{excdesc}{NotImplementedError}
217+
\versionadded{1.5.2}
218+
This exception is derived from \exception{RuntimeError}. In user
219+
defined base classes, abstract methods should raise this exception
220+
when they require derived classes to override the method.
221+
\end{excdesc}
222+
216223
\begin{excdesc}{OSError}
217224
\versionadded{1.5.2}
218225
%xref for os module
@@ -241,15 +248,6 @@ \section{Built-in Exceptions}
241248
more.)
242249
\end{excdesc}
243250

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-
253251
\begin{excdesc}{SyntaxError}
254252
% XXXJH xref to these functions?
255253
Raised when the parser encounters a syntax error. This may occur in

0 commit comments

Comments
 (0)