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

Skip to content

Commit cebda6f

Browse files
committed
Added documentation for WindowsError; omission noted by Michal Bozon
<[email protected]>. (Mark Hammond, other Python/Windows cognoscenti: please check this!)
1 parent e99d1db commit cebda6f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Doc/lib/libexcs.tex

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,16 @@ \section{Built-in Exceptions}
314314
\exception{IndexError}.
315315
\end{excdesc}
316316

317+
\begin{excdesc}{WindowsError}
318+
Raised when a Windows-specific error occurs or when the error number
319+
does not correspond to an \cdata{errno} value. The
320+
\member{errno} and \member{strerror} values are created from the
321+
return values of the \cfunction{GetLastError()} and
322+
\cfunction{FormatMessage()} functions from the Windows Platform API.
323+
This is a subclass of \exception{OSError}.
324+
\versionadded{1.6}
325+
\end{excdesc}
326+
317327
\begin{excdesc}{ZeroDivisionError}
318328
Raised when the second argument of a division or modulo operation is
319329
zero. The associated value is a string indicating the type of the

0 commit comments

Comments
 (0)