Home
last modified time | relevance | path

Searched refs:exc_type (Results 1 – 25 of 93) sorted by relevance

1234

/third_party/python/Python/
Derrors.c80 while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) && in _PyErr_GetTopmostException()
472 *p_type = exc_info->exc_type; in _PyErr_GetExcInfo()
495 oldtype = tstate->exc_info->exc_type; in PyErr_SetExcInfo()
499 tstate->exc_info->exc_type = p_type; in PyErr_SetExcInfo()
568 if (exc_info->exc_type == NULL || exc_info->exc_type == Py_None) { in _PyErr_ChainStackItem()
584 exc2 = exc_info->exc_type; in _PyErr_ChainStackItem()
1235 make_unraisable_hook_args(PyThreadState *tstate, PyObject *exc_type, in make_unraisable_hook_args() argument
1245 #define ADD_ITEM(exc_type) \ in make_unraisable_hook_args() argument
1247 if (exc_type == NULL) { \ in make_unraisable_hook_args()
1248 exc_type = Py_None; \ in make_unraisable_hook_args()
[all …]
Dsysmodule.c74 PyObject *exc_type, *exc_value, *exc_tb; in sys_get_object_id() local
75 _PyErr_Fetch(tstate, &exc_type, &exc_value, &exc_tb); in sys_get_object_id()
79 _PyErr_Restore(tstate, exc_type, exc_value, exc_tb); in sys_get_object_id()
105 PyObject *exc_type, *exc_value, *exc_tb; in PySys_GetObject() local
106 _PyErr_Fetch(tstate, &exc_type, &exc_value, &exc_tb); in PySys_GetObject()
110 _PyErr_Restore(tstate, exc_type, exc_value, exc_tb); in PySys_GetObject()
211 PyObject *exc_type, *exc_value, *exc_tb; in sys_audit_tstate() local
212 _PyErr_Fetch(ts, &exc_type, &exc_value, &exc_tb); in sys_audit_tstate()
301 _PyErr_Restore(ts, exc_type, exc_value, exc_tb); in sys_audit_tstate()
305 Py_XDECREF(exc_type); in sys_audit_tstate()
[all …]
/third_party/node/tools/inspector_protocol/jinja2/
Ddebug.py83 def __init__(self, exc_type, exc_value, frames): argument
85 self.exc_type = exc_type
99 lines = traceback.format_exception(self.exc_type, self.exc_value,
119 return self.exc_type, self.exc_value, self.frames[0]
129 return self.exc_type, self.exc_value, tb
134 exc_type, exc_value, tb = exc_info
230 exc_type, exc_value, tb = exc_info
/third_party/python/Lib/test/
D_test_atexit.py17 def assert_raises_unraisable(self, exc_type, func, *args): argument
23 self.assertEqual(cm.unraisable.exc_type, exc_type)
24 self.assertEqual(type(cm.unraisable.exc_value), exc_type)
129 self.assertEqual(cm.unraisable.exc_type, ZeroDivisionError)
Daudit-tests.py20 def __init__(self, raise_on_events=None, exc_type=RuntimeError): argument
22 self.exc_type = exc_type
45 raise self.exc_type("saw event " + event)
103 raise_on_events="sys.addaudithook", exc_type=BaseException
274 def excepthook(exc_type, exc_value, exc_tb): argument
275 if exc_type is not RuntimeError:
276 sys.__excepthook__(exc_type, exc_value, exc_tb)
D_test_embed_set_config.py139 for exc_type, tests in (
145 with self.subTest(key=key, value=value, exc_type=exc_type):
146 with self.assertRaises(exc_type):
Dtest_contextlib_async.py74 async def __aexit__(self, exc_type, exc_value, traceback): argument
468 async def _expect_exc(exc_type, exc, exc_tb): argument
469 self.assertIs(exc_type, exc_raised)
472 async def _expect_ok(exc_type, exc, exc_tb): argument
473 self.assertIsNone(exc_type)
Dtest_traceback.py568 exc_type, exc_value, exc_tb = sys.exc_info()
600 exc_type, exc_val, exc_tb = sys.exc_info()
929 exc_type, exc_value, tb = sys.exc_info()
956 exc_type, exc_value, tb = sys.exc_info()
960 return traceback.format_exception(exc_type, exc_value, tb, **kwargs)[1:-1]
1174 self.assertEqual(exc_info[0], exc.exc_type)
1196 self.assertEqual(exc_info[0], exc.exc_type)
1218 self.assertEqual(exc_info[0], exc.exc_type)
1238 self.assertEqual(exc_info[0], exc.exc_type)
1283 self.assertEqual(exc_info[0], exc.exc_type)
[all …]
/third_party/python/Lib/test/support/
Dthreading_helper.py187 self.exc_type = None
194 self.exc_type = args.exc_type
206 del self.exc_type
/third_party/python/Lib/
Dtraceback.py489 def __init__(self, exc_type, exc_value, exc_traceback, *, limit=None, argument
505 self.exc_type = exc_type
509 if exc_type and issubclass(exc_type, SyntaxError):
600 if self.exc_type is None:
604 stype = self.exc_type.__qualname__
605 smod = self.exc_type.__module__
611 if not issubclass(self.exc_type, SyntaxError):
Dpy_compile.py46 def __init__(self, exc_type, exc_value, file, msg=''): argument
47 exc_type_name = exc_type.__name__
48 if exc_type is SyntaxError:
50 exc_type, exc_value))
Dcontextlib.py26 def __exit__(self, exc_type, exc_value, traceback): argument
48 async def __aexit__(self, exc_type, exc_value, traceback): argument
448 def _exit_wrapper(exc_type, exc, tb): argument
607 async def _exit_wrapper(exc_type, exc, tb): argument
/third_party/python/Lib/xmlrpc/
Dserver.py273 exc_type, exc_value, exc_tb = sys.exc_info()
276 Fault(1, "%s:%s" % (exc_type, exc_value)),
281 exc_type = exc_value = exc_tb = None
372 exc_type, exc_value, exc_tb = sys.exc_info()
376 'faultString' : "%s:%s" % (exc_type, exc_value)}
380 exc_type = exc_value = exc_tb = None
641 exc_type, exc_value = sys.exc_info()[:2]
644 Fault(1, "%s:%s" % (exc_type, exc_value)),
649 exc_type = exc_value = None
/third_party/skia/infra/bots/
Dgit_utils.py34 def __exit__(self, exc_type, _value, _traceback): argument
88 def __exit__(self, exc_type, _value, _traceback): argument
92 if exc_type is None:
/third_party/python/Modules/_ssl/
Ddebughelpers.c77 PyErr_Fetch(&ssl_obj->exc_type, &ssl_obj->exc_value, &ssl_obj->exc_tb); in _PySSL_msg_callback()
143 PyErr_Fetch(&ssl_obj->exc_type, &ssl_obj->exc_value, in _PySSL_keylog_callback()
161 PyErr_Fetch(&ssl_obj->exc_type, &ssl_obj->exc_value, &ssl_obj->exc_tb); in _PySSL_keylog_callback()
/third_party/python/Modules/_multiprocessing/clinic/
Dsemaphore.c.h362 PyObject *exc_type,
369 PyObject *exc_type = Py_None; in _multiprocessing_SemLock___exit__() local
379 exc_type = args[0]; in _multiprocessing_SemLock___exit__()
389 return_value = _multiprocessing_SemLock___exit___impl(self, exc_type, exc_value, exc_tb); in _multiprocessing_SemLock___exit__()
/third_party/python/Lib/multiprocessing/dummy/
Dconnection.py36 def __exit__(self, exc_type, exc_value, exc_tb): argument
74 def __exit__(self, exc_type, exc_value, exc_tb): argument
/third_party/python/Lib/ctypes/test/
Dtest_random_things.py42 def expect_unraisable(self, exc_type, exc_msg=None): argument
46 self.assertIsInstance(cm.unraisable.exc_value, exc_type)
/third_party/python/Include/internal/
Dpycore_pyerrors.h20 t = exc_state->exc_type; in _PyErr_ClearExcState()
23 exc_state->exc_type = NULL; in _PyErr_ClearExcState()
/third_party/python/Lib/unittest/
D_log.py63 def __exit__(self, exc_type, exc_value, tb): argument
68 if exc_type is not None:
/third_party/python/Modules/
D_tkinter.c1381 PyObject **exc_type, **exc_value, **exc_tb; member
1498 PyErr_Fetch(e->exc_type, e->exc_value, e->exc_tb); in Tkapp_CallProc()
1513 PyErr_Fetch(e->exc_type, e->exc_value, e->exc_tb); in Tkapp_CallProc()
1560 PyObject *exc_type, *exc_value, *exc_tb; in Tkapp_Call() local
1572 ev->exc_type = &exc_type; in Tkapp_Call()
1580 if (exc_type) in Tkapp_Call()
1581 PyErr_Restore(exc_type, exc_value, exc_tb); in Tkapp_Call()
1737 PyObject **exc_type; member
1805 *(ev->exc_type) = exc; in var_perform()
1831 PyObject *res, *exc_type, *exc_val; in var_invoke() local
[all …]
/third_party/skia/third_party/externals/jinja2/
Ddebug.py23 exc_type, exc_value, tb = sys.exc_info()
73 return exc_type, exc_value, tb_next
/third_party/node/deps/v8/third_party/jinja2/
Ddebug.py23 exc_type, exc_value, tb = sys.exc_info()
73 return exc_type, exc_value, tb_next
/third_party/python/Modules/_sqlite/clinic/
Dconnection.c.h683 pysqlite_connection_exit_impl(pysqlite_Connection *self, PyObject *exc_type,
690 PyObject *exc_type; in pysqlite_connection_exit() local
697 exc_type = args[0]; in pysqlite_connection_exit()
700 return_value = pysqlite_connection_exit_impl(self, exc_type, exc_value, exc_tb); in pysqlite_connection_exit()
/third_party/python/Lib/idlelib/
Dstackviewer.py137 exc_type, exc_value, exc_tb = sys.exc_info()
139 sys.last_type = exc_type

1234