diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-04-15 18:57:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 18:57:47 (GMT) |
commit | 5d421d7342fc0d278c129c05bea7028430e94a4e (patch) | |
tree | c5bb38c41d86c6289dfcb1f7937f2df07305f4d8 /Include/cpython/pyerrors.h | |
parent | c06a4ffe818feddef3b5083d9746a1c0b82c84ab (diff) | |
download | cpython-5d421d7342fc0d278c129c05bea7028430e94a4e.zip cpython-5d421d7342fc0d278c129c05bea7028430e94a4e.tar.gz cpython-5d421d7342fc0d278c129c05bea7028430e94a4e.tar.bz2 |
gh-90501: Add PyErr_GetHandledException and PyErr_SetHandledException (GH-30531)
Diffstat (limited to 'Include/cpython/pyerrors.h')
-rw-r--r-- | Include/cpython/pyerrors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h index 5281fde..08630cc 100644 --- a/Include/cpython/pyerrors.h +++ b/Include/cpython/pyerrors.h @@ -91,6 +91,8 @@ typedef PyOSErrorObject PyWindowsErrorObject; PyAPI_FUNC(void) _PyErr_SetKeyError(PyObject *); PyAPI_FUNC(_PyErr_StackItem*) _PyErr_GetTopmostException(PyThreadState *tstate); +PyAPI_FUNC(PyObject*) _PyErr_GetHandledException(PyThreadState *); +PyAPI_FUNC(void) _PyErr_SetHandledException(PyThreadState *, PyObject *); PyAPI_FUNC(void) _PyErr_GetExcInfo(PyThreadState *, PyObject **, PyObject **, PyObject **); /* Context manipulation (PEP 3134) */ |