Lines Matching refs:exc
85 PyErr_GivenExceptionMatches(PyObject *err, PyObject *exc) in PyErr_GivenExceptionMatches() argument
87 if (err == NULL || exc == NULL) { in PyErr_GivenExceptionMatches()
91 if (PyTuple_Check(exc)) { in PyErr_GivenExceptionMatches()
93 n = PyTuple_Size(exc); in PyErr_GivenExceptionMatches()
97 err, PyTuple_GET_ITEM(exc, i))) in PyErr_GivenExceptionMatches()
108 if (PyExceptionClass_Check(err) && PyExceptionClass_Check(exc)) { in PyErr_GivenExceptionMatches()
119 res = PyObject_IsSubclass(err, exc); in PyErr_GivenExceptionMatches()
130 return err == exc; in PyErr_GivenExceptionMatches()
135 PyErr_ExceptionMatches(PyObject *exc) in PyErr_ExceptionMatches() argument
137 return PyErr_GivenExceptionMatches(PyErr_Occurred(), exc); in PyErr_ExceptionMatches()
145 PyErr_NormalizeException(PyObject **exc, PyObject **val, PyObject **tb) in PyErr_NormalizeException() argument
147 PyObject *type = *exc; in PyErr_NormalizeException()
208 *exc = type; in PyErr_NormalizeException()
219 PyErr_Fetch(exc, val, tb); in PyErr_NormalizeException()
232 Py_SETREF(*exc, PyExc_RuntimeError); in PyErr_NormalizeException()
238 PyErr_NormalizeException(exc, val, tb); in PyErr_NormalizeException()
268 _PyErr_ReplaceException(PyObject *exc, PyObject *val, PyObject *tb) in _PyErr_ReplaceException() argument
270 if (exc == NULL) in _PyErr_ReplaceException()
274 Py_DECREF(exc); in _PyErr_ReplaceException()
279 PyErr_Restore(exc, val, tb); in _PyErr_ReplaceException()
313 PyErr_SetFromErrnoWithFilenameObject(PyObject *exc, PyObject *filenameObject) in PyErr_SetFromErrnoWithFilenameObject() argument
382 PyErr_SetObject(exc, v); in PyErr_SetFromErrnoWithFilenameObject()
393 PyErr_SetFromErrnoWithFilename(PyObject *exc, const char *filename) in PyErr_SetFromErrnoWithFilename() argument
396 PyObject *result = PyErr_SetFromErrnoWithFilenameObject(exc, name); in PyErr_SetFromErrnoWithFilename()
403 PyErr_SetFromErrnoWithUnicodeFilename(PyObject *exc, const Py_UNICODE *filename) in PyErr_SetFromErrnoWithUnicodeFilename() argument
408 PyObject *result = PyErr_SetFromErrnoWithFilenameObject(exc, name); in PyErr_SetFromErrnoWithUnicodeFilename()
415 PyErr_SetFromErrno(PyObject *exc) in PyErr_SetFromErrno() argument
417 return PyErr_SetFromErrnoWithFilenameObject(exc, NULL); in PyErr_SetFromErrno()
423 PyObject *exc, in PyErr_SetExcFromWindowsErrWithFilenameObject() argument
462 PyErr_SetObject(exc, v); in PyErr_SetExcFromWindowsErrWithFilenameObject()
470 PyObject *exc, in PyErr_SetExcFromWindowsErrWithFilename() argument
475 PyObject *ret = PyErr_SetExcFromWindowsErrWithFilenameObject(exc, in PyErr_SetExcFromWindowsErrWithFilename()
483 PyObject *exc, in PyErr_SetExcFromWindowsErrWithUnicodeFilename() argument
490 PyObject *ret = PyErr_SetExcFromWindowsErrWithFilenameObject(exc, in PyErr_SetExcFromWindowsErrWithUnicodeFilename()
497 PyObject *PyErr_SetExcFromWindowsErr(PyObject *exc, int ierr) in PyErr_SetExcFromWindowsErr() argument
499 return PyErr_SetExcFromWindowsErrWithFilename(exc, ierr, NULL); in PyErr_SetExcFromWindowsErr()
729 PyObject *exc, *v, *tb, *tmp; in PyErr_SyntaxLocation() local
732 PyErr_Fetch(&exc, &v, &tb); in PyErr_SyntaxLocation()
733 PyErr_NormalizeException(&exc, &v, &tb); in PyErr_SyntaxLocation()
764 if (exc != PyExc_SyntaxError) { in PyErr_SyntaxLocation()
781 PyErr_Restore(exc, v, tb); in PyErr_SyntaxLocation()