Home
last modified time | relevance | path

Searched refs:exc_type (Results 1 - 25 of 80) sorted by relevance

1234

/third_party/python/Python/
H A Derrors.c560 PyObject *exc_type = get_exc_type(exc_value); in _PyErr_StackItemToExcInfoTuple() local
565 exc_type ? exc_type : Py_None, in _PyErr_StackItemToExcInfoTuple()
1224 {"exc_type", "Exception type"},
1269 make_unraisable_hook_args(PyThreadState *tstate, PyObject *exc_type, in make_unraisable_hook_args() argument
1279 #define ADD_ITEM(exc_type) \ in make_unraisable_hook_args()
1281 if (exc_type == NULL) { \ in make_unraisable_hook_args()
1282 exc_type = Py_None; \ in make_unraisable_hook_args()
1284 Py_INCREF(exc_type); \ in make_unraisable_hook_args()
1285 PyStructSequence_SET_ITEM(args, pos++, exc_type); \ in make_unraisable_hook_args()
1311 write_unraisable_exc_file(PyThreadState *tstate, PyObject *exc_type, PyObject *exc_value, PyObject *exc_tb, PyObject *err_msg, PyObject *obj, PyObject *file) write_unraisable_exc_file() argument
1431 write_unraisable_exc(PyThreadState *tstate, PyObject *exc_type, PyObject *exc_value, PyObject *exc_tb, PyObject *err_msg, PyObject *obj) write_unraisable_exc() argument
1464 PyObject *exc_type = PyStructSequence_GET_ITEM(args, 0); _PyErr_WriteUnraisableDefaultHook() local
1495 PyObject *exc_type, *exc_value, *exc_tb; _PyErr_WriteUnraisableMsg() local
[all...]
H A Dsysmodule.c70 PyObject *exc_type, *exc_value, *exc_tb; in _PySys_GetAttr() local
71 _PyErr_Fetch(tstate, &exc_type, &exc_value, &exc_tb); in _PySys_GetAttr()
75 _PyErr_Restore(tstate, exc_type, exc_value, exc_tb); in _PySys_GetAttr()
94 PyObject *exc_type, *exc_value, *exc_tb; in PySys_GetObject() local
95 _PyErr_Fetch(tstate, &exc_type, &exc_value, &exc_tb); in PySys_GetObject()
99 _PyErr_Restore(tstate, exc_type, exc_value, exc_tb); in PySys_GetObject()
194 PyObject *exc_type, *exc_value, *exc_tb; in sys_audit_tstate() local
195 _PyErr_Fetch(ts, &exc_type, &exc_value, &exc_tb); in sys_audit_tstate()
279 _PyErr_Restore(ts, exc_type, exc_value, exc_tb); in sys_audit_tstate()
283 Py_XDECREF(exc_type); in sys_audit_tstate()
[all...]
/third_party/python/Lib/test/
H A D_test_atexit.py17 def assert_raises_unraisable(self, exc_type, func, *args):
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)
H A Daudit-tests.py20 def __init__(self, raise_on_events=None, exc_type=RuntimeError):
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):
275 if exc_type is not RuntimeError:
276 sys.__excepthook__(exc_type, exc_value, exc_tb)
H A D_test_embed_set_config.py141 for exc_type, tests in (
147 with self.subTest(key=key, value=value, exc_type=exc_type):
148 with self.assertRaises(exc_type):
H A Dtest_contextlib_async.py73 async def __aexit__(self, exc_type, exc_value, traceback):
604 async def _expect_exc(exc_type, exc, exc_tb):
605 self.assertIs(exc_type, exc_raised)
608 async def _expect_ok(exc_type, exc, exc_tb):
609 self.assertIsNone(exc_type)
H A Dtest_with.py220 exc_type=None):
223 if exc_type is None:
225 exc_type = type(self.TEST_EXCEPTION)
226 self.assertEqual(mock_manager.exit_args[0], exc_type)
228 self.assertIsInstance(mock_manager.exit_args[1], exc_type)
H A Dtest_cprofile.py32 self.assertEqual(cm.unraisable.exc_type, TypeError)
/third_party/node/tools/inspector_protocol/jinja2/
H A Ddebug.py83 def __init__(self, exc_type, exc_value, frames):
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/support/
H A Dthreading_helper.py163 * exc_type
179 # exc_type, exc_value, exc_traceback, thread
182 # exc_type, exc_value, exc_traceback, thread attributes of cm no longer
188 self.exc_type = None
195 self.exc_type = args.exc_type
207 del self.exc_type
/third_party/python/Lib/
H A Dpy_compile.py24 raise PyCompileError(exc_type,exc_value,file[,msg])
28 exc_type: exception type to be used in error message
46 def __init__(self, exc_type, exc_value, file, msg=''):
47 exc_type_name = exc_type.__name__
48 if exc_type is SyntaxError:
50 exc_type, exc_value))
H A Dtraceback.py661 - :attr:`exc_type` The class of the original traceback.
677 def __init__(self, exc_type, exc_value, exc_traceback, *, limit=None,
696 self.exc_type = exc_type
702 if exc_type and issubclass(exc_type, SyntaxError):
818 if self.exc_type is None:
822 stype = self.exc_type.__qualname__
823 smod = self.exc_type.__module__
829 if not issubclass(self.exc_type, SyntaxErro
[all...]
H A Dcontextlib.py28 def __exit__(self, exc_type, exc_value, traceback):
50 async def __aexit__(self, exc_type, exc_value, traceback):
456 def _exit_wrapper(exc_type, exc, tb):
620 async def _exit_wrapper(exc_type, exc, tb):
/third_party/skia/infra/bots/
H A Dgit_utils.py34 def __exit__(self, exc_type, _value, _traceback):
88 def __exit__(self, exc_type, _value, _traceback):
92 if exc_type is None:
/third_party/python/Modules/_ssl/
H A 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/Lib/ctypes/test/
H A Dtest_random_things.py42 def expect_unraisable(self, exc_type, exc_msg=None):
46 self.assertIsInstance(cm.unraisable.exc_value, exc_type)
/third_party/python/Lib/multiprocessing/dummy/
H A Dconnection.py36 def __exit__(self, exc_type, exc_value, exc_tb):
74 def __exit__(self, exc_type, exc_value, exc_tb):
/third_party/python/Modules/_multiprocessing/clinic/
H A Dsemaphore.c.h386 "__exit__($self, exc_type=None, exc_value=None, exc_tb=None, /)\n"
396 PyObject *exc_type,
403 PyObject *exc_type = Py_None; in _multiprocessing_SemLock___exit__() local
413 exc_type = args[0]; in _multiprocessing_SemLock___exit__()
423 return_value = _multiprocessing_SemLock___exit___impl(self, exc_type, exc_value, exc_tb); in _multiprocessing_SemLock___exit__()
/third_party/python/Lib/asyncio/
H A Dtimeouts.py95 exc_type: Optional[Type[BaseException]],
108 if self._task.uncancel() <= self._cancelling and exc_type is exceptions.CancelledError:
/third_party/python/Lib/unittest/
H A D_log.py63 def __exit__(self, exc_type, exc_value, tb):
68 if exc_type is not None:
/third_party/node/deps/v8/third_party/jinja2/
H A Ddebug.py23 exc_type, exc_value, tb = sys.exc_info()
73 return exc_type, exc_value, tb_next
/third_party/skia/third_party/externals/jinja2/
H A Ddebug.py23 exc_type, exc_value, tb = sys.exc_info()
73 return exc_type, exc_value, tb_next
/third_party/python/Modules/
H A D_tkinter.c1247 PyObject **exc_type, **exc_value, **exc_tb; member
1364 PyErr_Fetch(e->exc_type, e->exc_value, e->exc_tb); in Tkapp_CallProc()
1379 PyErr_Fetch(e->exc_type, e->exc_value, e->exc_tb); in Tkapp_CallProc()
1426 PyObject *exc_type, *exc_value, *exc_tb; in Tkapp_Call() local
1438 ev->exc_type = &exc_type; in Tkapp_Call()
1446 if (exc_type) in Tkapp_Call()
1447 PyErr_Restore(exc_type, exc_value, exc_tb); in Tkapp_Call()
1603 PyObject **exc_type; member
1671 *(ev->exc_type) in var_perform()
1697 PyObject *res, *exc_type, *exc_val; var_invoke() local
[all...]
/third_party/python/Lib/idlelib/
H A Dstackviewer.py137 exc_type, exc_value, exc_tb = sys.exc_info()
139 sys.last_type = exc_type
/third_party/python/Modules/clinic/
H A Dselectmodule.c.h873 "__exit__($self, exc_type=None, exc_value=None, exc_tb=None, /)\n"
881 select_epoll___exit___impl(pyEpoll_Object *self, PyObject *exc_type,
888 PyObject *exc_type = Py_None; in select_epoll___exit__() local
898 exc_type = args[0]; in select_epoll___exit__()
908 return_value = select_epoll___exit___impl(self, exc_type, exc_value, exc_tb); in select_epoll___exit__()

Completed in 18 milliseconds

1234