Lines Matching defs:exception

709     PyObject *exception, *value, *tb;
710 PyErr_Fetch(&exception, &value, &tb);
738 /* We clear the exception here to avoid triggering the assertion
739 * in PyObject_Str that ensures it won't silently lose exception
754 /* Restore and clear the exception info, in order to properly decref
755 * the exception, value, and traceback. If we just exit instead,
759 PyErr_Restore(exception, value, tb);
779 PyObject *exception, *v, *tb, *hook;
783 _PyErr_Fetch(tstate, &exception, &v, &tb);
784 if (exception == NULL) {
788 _PyErr_NormalizeException(tstate, &exception, &v, &tb);
794 if (exception == NULL) {
800 if (_PySys_SetAttr(&_Py_ID(last_type), exception) < 0) {
812 exception, v, tb) < 0) {
823 stack[0] = exception;
847 PySys_WriteStderr("\nOriginal exception was:\n");
848 PyErr_Display(exception, v, tb);
857 PyErr_Display(exception, v, tb);
861 Py_XDECREF(exception);
889 int exception_group_depth; // nesting level of current exception group
1080 if (PyFile_WriteString(": <exception str() failed>", f) < 0) {
1256 "The above exception was the direct cause "
1257 "of the following exception:\n";
1260 "During handling of the above exception, "
1261 "another exception occurred:\n";
1466 "and %zd more exception%s\n",
1524 _PyErr_Display(PyObject *file, PyObject *exception, PyObject *value, PyObject *tb)
1529 /* Put the traceback on the exception, otherwise it won't get
1546 at least the main exception (it could be a MemoryError).
1571 PyErr_Display(PyObject *exception, PyObject *value, PyObject *tb)
1584 _PyErr_Display(file, exception, value, tb);
1664 /* Save the current exception */
1695 * don't care about an uncaught KeyboardInterrupt exception (why didn't they
1699 * uncaught exception to trigger an unexplained signal exit from a future
1885 /* alloca throws a stack overflow exception if there's