Lines Matching refs:exc
184 PyErr_GivenExceptionMatches(PyObject *err, PyObject *exc) in PyErr_GivenExceptionMatches() argument
186 if (err == NULL || exc == NULL) { in PyErr_GivenExceptionMatches()
190 if (PyTuple_Check(exc)) { in PyErr_GivenExceptionMatches()
192 n = PyTuple_Size(exc); in PyErr_GivenExceptionMatches()
196 err, PyTuple_GET_ITEM(exc, i))) in PyErr_GivenExceptionMatches()
207 if (PyExceptionClass_Check(err) && PyExceptionClass_Check(exc)) { in PyErr_GivenExceptionMatches()
208 return PyType_IsSubtype((PyTypeObject *)err, (PyTypeObject *)exc); in PyErr_GivenExceptionMatches()
211 return err == exc; in PyErr_GivenExceptionMatches()
216 PyErr_ExceptionMatches(PyObject *exc) in PyErr_ExceptionMatches() argument
218 return PyErr_GivenExceptionMatches(PyErr_Occurred(), exc); in PyErr_ExceptionMatches()
233 PyErr_NormalizeException(PyObject **exc, PyObject **val, PyObject **tb) in PyErr_NormalizeException() argument
239 type = *exc; in PyErr_NormalizeException()
291 *exc = type; in PyErr_NormalizeException()
308 PyErr_Fetch(exc, val, tb); in PyErr_NormalizeException()
309 assert(*exc != NULL); in PyErr_NormalizeException()
321 if (PyErr_GivenExceptionMatches(*exc, PyExc_MemoryError)) { in PyErr_NormalizeException()
393 _PyErr_ChainExceptions(PyObject *exc, PyObject *val, PyObject *tb) in _PyErr_ChainExceptions() argument
395 if (exc == NULL) in _PyErr_ChainExceptions()
401 PyErr_NormalizeException(&exc, &val, &tb); in _PyErr_ChainExceptions()
406 Py_DECREF(exc); in _PyErr_ChainExceptions()
412 PyErr_Restore(exc, val, tb); in _PyErr_ChainExceptions()
419 PyObject *exc, *val, *val2, *tb; in _PyErr_FormatVFromCause() local
422 PyErr_Fetch(&exc, &val, &tb); in _PyErr_FormatVFromCause()
423 PyErr_NormalizeException(&exc, &val, &tb); in _PyErr_FormatVFromCause()
428 Py_DECREF(exc); in _PyErr_FormatVFromCause()
433 PyErr_Fetch(&exc, &val2, &tb); in _PyErr_FormatVFromCause()
434 PyErr_NormalizeException(&exc, &val2, &tb); in _PyErr_FormatVFromCause()
438 PyErr_Restore(exc, val2, tb); in _PyErr_FormatVFromCause()
481 PyErr_SetFromErrnoWithFilenameObject(PyObject *exc, PyObject *filenameObject) in PyErr_SetFromErrnoWithFilenameObject() argument
483 return PyErr_SetFromErrnoWithFilenameObjects(exc, filenameObject, NULL); in PyErr_SetFromErrnoWithFilenameObject()
487 PyErr_SetFromErrnoWithFilenameObjects(PyObject *exc, PyObject *filenameObject, PyObject *filenameOb… in PyErr_SetFromErrnoWithFilenameObjects() argument
571 v = PyObject_Call(exc, args, NULL); in PyErr_SetFromErrnoWithFilenameObjects()
585 PyErr_SetFromErrnoWithFilename(PyObject *exc, const char *filename) in PyErr_SetFromErrnoWithFilename() argument
588 PyObject *result = PyErr_SetFromErrnoWithFilenameObjects(exc, name, NULL); in PyErr_SetFromErrnoWithFilename()
595 PyErr_SetFromErrnoWithUnicodeFilename(PyObject *exc, const Py_UNICODE *filename) in PyErr_SetFromErrnoWithUnicodeFilename() argument
598 PyObject *result = PyErr_SetFromErrnoWithFilenameObjects(exc, name, NULL); in PyErr_SetFromErrnoWithUnicodeFilename()
605 PyErr_SetFromErrno(PyObject *exc) in PyErr_SetFromErrno() argument
607 return PyErr_SetFromErrnoWithFilenameObjects(exc, NULL, NULL); in PyErr_SetFromErrno()
613 PyObject *exc, in PyErr_SetExcFromWindowsErrWithFilenameObject() argument
617 return PyErr_SetExcFromWindowsErrWithFilenameObjects(exc, ierr, in PyErr_SetExcFromWindowsErrWithFilenameObject()
622 PyObject *exc, in PyErr_SetExcFromWindowsErrWithFilenameObjects() argument
674 v = PyObject_Call(exc, args, NULL); in PyErr_SetExcFromWindowsErrWithFilenameObjects()
686 PyObject *exc, in PyErr_SetExcFromWindowsErrWithFilename() argument
691 PyObject *ret = PyErr_SetExcFromWindowsErrWithFilenameObjects(exc, in PyErr_SetExcFromWindowsErrWithFilename()
700 PyObject *exc, in PyErr_SetExcFromWindowsErrWithUnicodeFilename() argument
705 PyObject *ret = PyErr_SetExcFromWindowsErrWithFilenameObjects(exc, in PyErr_SetExcFromWindowsErrWithUnicodeFilename()
713 PyObject *PyErr_SetExcFromWindowsErr(PyObject *exc, int ierr) in PyErr_SetExcFromWindowsErr() argument
715 return PyErr_SetExcFromWindowsErrWithFilename(exc, ierr, NULL); in PyErr_SetExcFromWindowsErr()
1047 PyObject *exc, *v, *tb, *tmp; in PyErr_SyntaxLocationObject() local
1056 PyErr_Fetch(&exc, &v, &tb); in PyErr_SyntaxLocationObject()
1057 PyErr_NormalizeException(&exc, &v, &tb); in PyErr_SyntaxLocationObject()
1088 if (exc != PyExc_SyntaxError) { in PyErr_SyntaxLocationObject()
1105 PyErr_Restore(exc, v, tb); in PyErr_SyntaxLocationObject()