Mercurial > cpython-lru_cache-weakref
diff Doc/api/exceptions.tex @ 24423:3db261a93a5b legacy-trunk
New functions for extension writers on Windows:
PyErr_SetExcFromWindowsErr(), PyErr_SetExcFromWindowsErrWithFilename().
Similar to PyErr_SetFromWindowsErrWithFilename() and
PyErr_SetFromWindowsErr(), but they allow to specify
the exception type to raise. Available on Windows.
See SF patch #576458.
| author | Thomas Heller <theller@ctypes.org> |
|---|---|
| date | Mon, 29 Jul 2002 14:27:41 +0000 |
| parents | e66ced481c77 |
| children | 4e44fabe0fa0 |
line wrap: on
line diff
--- a/Doc/api/exceptions.tex Mon Jul 29 14:05:24 2002 +0000 +++ b/Doc/api/exceptions.tex Mon Jul 29 14:27:41 2002 +0000 @@ -208,6 +208,14 @@ Availability: Windows. \end{cfuncdesc} +\begin{cfuncdesc}{PyObject*}{PyErr_SetExcFromWindowsErr}{PyObject *type, + int ierr} + Similar to \cfunction{PyErr_SetFromWindowsErr()}, with an additional + parameter specifying the exception type to be raised. + Availability: Windows. + \versionadded{2.3} +\end{cfuncdesc} + \begin{cfuncdesc}{PyObject*}{PyErr_SetFromWindowsErrWithFilename}{int ierr, char *filename} Similar to \cfunction{PyErr_SetFromWindowsErr()}, with the @@ -217,6 +225,14 @@ Availability: Windows. \end{cfuncdesc} +\begin{cfuncdesc}{PyObject*}{PyErr_SetExcFromWindowsErrWithFilename} + {PyObject *type, int ierr, char *filename} + Similar to \cfunction{PyErr_SetFromWindowsErrWithFilename()}, with + an additional parameter specifying the exception type to be raised. + Availability: Windows. + \versionadded{2.3} +\end{cfuncdesc} + \begin{cfuncdesc}{void}{PyErr_BadInternalCall}{} This is a shorthand for \samp{PyErr_SetString(PyExc_TypeError, \var{message})}, where \var{message} indicates that an internal
