Home
last modified time | relevance | path

Searched refs:exc_value (Results 1 – 25 of 75) sorted by relevance

123

/third_party/jinja2/
Ddebug.py23 exc_type, exc_value, tb = sys.exc_info()
25 if isinstance(exc_value, TemplateSyntaxError) and not exc_value.translated:
26 exc_value.translated = True
27 exc_value.source = source
32 exc_value.with_traceback(None)
39 exc_value, None, exc_value.filename or "<unknown>", exc_value.lineno
60 fake_tb = fake_traceback(exc_value, tb, template.filename, lineno)
73 return exc_type, exc_value, tb_next
76 def fake_traceback(exc_value, tb, filename, lineno): argument
100 "__jinja_exception__": exc_value,
/third_party/skia/third_party/externals/jinja2/
Ddebug.py23 exc_type, exc_value, tb = sys.exc_info()
25 if isinstance(exc_value, TemplateSyntaxError) and not exc_value.translated:
26 exc_value.translated = True
27 exc_value.source = source
32 exc_value.with_traceback(None)
39 exc_value, None, exc_value.filename or "<unknown>", exc_value.lineno
60 fake_tb = fake_traceback(exc_value, tb, template.filename, lineno)
73 return exc_type, exc_value, tb_next
76 def fake_traceback(exc_value, tb, filename, lineno): argument
100 "__jinja_exception__": exc_value,
/third_party/node/tools/inspector_protocol/jinja2/
Ddebug.py83 def __init__(self, exc_type, exc_value, frames): argument
86 self.exc_value = exc_value
99 lines = traceback.format_exception(self.exc_type, self.exc_value,
114 return isinstance(self.exc_value, TemplateSyntaxError)
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
135 if isinstance(exc_value, TemplateSyntaxError):
136 exc_info = translate_syntax_error(exc_value, source_hint)
230 exc_type, exc_value, tb = exc_info
/third_party/python/Python/
Derrors.c117 PyObject *exc_value; in _PyErr_SetObject() local
130 exc_value = _PyErr_GetTopmostException(tstate)->exc_value; in _PyErr_SetObject()
131 if (exc_value != NULL && exc_value != Py_None) { in _PyErr_SetObject()
133 Py_INCREF(exc_value); in _PyErr_SetObject()
145 Py_DECREF(exc_value); in _PyErr_SetObject()
158 if (exc_value != value) { in _PyErr_SetObject()
159 PyObject *o = exc_value, *context; in _PyErr_SetObject()
180 PyException_SetContext(value, exc_value); in _PyErr_SetObject()
183 Py_DECREF(exc_value); in _PyErr_SetObject()
473 *p_value = exc_info->exc_value; in _PyErr_GetExcInfo()
[all …]
Dsysmodule.c73 PyObject *exc_type, *exc_value, *exc_tb; in sys_get_object_id() local
74 _PyErr_Fetch(tstate, &exc_type, &exc_value, &exc_tb); in sys_get_object_id()
78 _PyErr_Restore(tstate, exc_type, exc_value, exc_tb); in sys_get_object_id()
104 PyObject *exc_type, *exc_value, *exc_tb; in PySys_GetObject() local
105 _PyErr_Fetch(tstate, &exc_type, &exc_value, &exc_tb); in PySys_GetObject()
109 _PyErr_Restore(tstate, exc_type, exc_value, exc_tb); in PySys_GetObject()
210 PyObject *exc_type, *exc_value, *exc_tb; in sys_audit_tstate() local
211 _PyErr_Fetch(ts, &exc_type, &exc_value, &exc_tb); in sys_audit_tstate()
300 _PyErr_Restore(ts, exc_type, exc_value, exc_tb); in sys_audit_tstate()
305 Py_XDECREF(exc_value); in sys_audit_tstate()
[all …]
/third_party/python/Lib/
Dpy_compile.py46 def __init__(self, exc_type, exc_value, file, msg=''): argument
50 exc_type, exc_value))
53 errmsg = "Sorry: %s: %s" % (exc_type_name,exc_value)
55 Exception.__init__(self,msg or errmsg,exc_type_name,exc_value,file)
58 self.exc_value = exc_value
Dtraceback.py489 def __init__(self, exc_type, exc_value, exc_traceback, *, limit=None, argument
499 _seen.add(id(exc_value))
508 self._str = _some_str(exc_value)
511 self.filename = exc_value.filename
512 lno = exc_value.lineno
514 end_lno = exc_value.end_lineno
516 self.text = exc_value.text
517 self.offset = exc_value.offset
518 self.end_offset = exc_value.end_offset
519 self.msg = exc_value.msg
[all …]
/third_party/python/Lib/test/support/
Dthreading_helper.py188 self.exc_value = None
195 self.exc_value = args.exc_value
207 del self.exc_value
/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/libxml2/doc/
Dindex.py226 print sys.exc_type, sys.exc_value
267 print sys.exc_type, sys.exc_value
316 print sys.exc_type, sys.exc_value
356 print sys.exc_type, sys.exc_value
439 print sys.exc_type, sys.exc_value
616 print sys.exc_type, sys.exc_value
665 print sys.exc_type, sys.exc_value
1018 print sys.exc_type, sys.exc_value
1184 print sys.exc_type, sys.exc_value
1210 print sys.exc_type, sys.exc_value
[all …]
Dqueries.py48 print sys.exc_type, sys.exc_value
107 print sys.exc_type, sys.exc_value
/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/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/Lib/ctypes/test/
Dtest_random_things.py46 self.assertIsInstance(cm.unraisable.exc_value, exc_type)
48 self.assertEqual(str(cm.unraisable.exc_value), exc_msg)
/third_party/python/Modules/_multiprocessing/clinic/
Dsemaphore.c.h363 PyObject *exc_value, PyObject *exc_tb);
370 PyObject *exc_value = Py_None; in _multiprocessing_SemLock___exit__() local
383 exc_value = args[1]; 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/Include/internal/
Dpycore_pyerrors.h21 v = exc_state->exc_value; in _PyErr_ClearExcState()
24 exc_state->exc_value = NULL; in _PyErr_ClearExcState()
/third_party/boost/tools/build/test/
Dtest_all.py71 exc_type, exc_value, exc_tb = sys.exc_info()
74 "%s" % (exc_type.__name__, exc_value))
Dcollect_debug_info.py326 exc_type, exc_value = sys.exc_info()[0:2]
331 return "*** EXCEPTION *** %s - %s ***" % (exc_type_name, exc_value)
/third_party/mindspore/mindspore/_extends/parallel_compile/tbe_compiler/
Dtuner.py305 exc_type, exc_value, _ = sys.exc_info()
307 … "exc_type:{}, exc_value:{}, exc_traceback:{}".format(exc_type, exc_value, traceback.format_exc()))
347 exc_type, exc_value, _ = sys.exc_info()
349 … "exc_type:{}, exc_value:{}, exc_traceback:{}".format(exc_type, exc_value, traceback.format_exc()))
Dtbe_adapter.py529 exc_type, exc_value, _ = sys.exc_info()
531 … "exc_type:{}, exc_value:{}, exc_traceback:{}".format(exc_type, exc_value, traceback.format_exc()))
561 exc_type, exc_value, _ = sys.exc_info()
563 … "exc_type:{}, exc_value:{}, exc_traceback:{}".format(exc_type, exc_value, traceback.format_exc()))
/third_party/python/Lib/test/
D_test_atexit.py24 self.assertEqual(type(cm.unraisable.exc_value), exc_type)
130 self.assertEqual(type(cm.unraisable.exc_value), ZeroDivisionError)
Daudit-tests.py274 def excepthook(exc_type, exc_value, exc_tb): argument
276 sys.__excepthook__(exc_type, exc_value, exc_tb)
301 print(event, repr(args[1].exc_value), args[1].err_msg)
/third_party/python/Lib/idlelib/
Dstackviewer.py137 exc_type, exc_value, exc_tb = sys.exc_info()
140 sys.last_value = exc_value
/third_party/python/Modules/_sqlite/clinic/
Dconnection.c.h684 PyObject *exc_value, PyObject *exc_tb);
691 PyObject *exc_value; in pysqlite_connection_exit() local
698 exc_value = args[1]; 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/Modules/clinic/
Dselectmodule.c.h874 PyObject *exc_value, PyObject *exc_tb);
881 PyObject *exc_value = Py_None; in select_epoll___exit__() local
894 exc_value = args[1]; in select_epoll___exit__()
900 return_value = select_epoll___exit___impl(self, exc_type, exc_value, exc_tb); in select_epoll___exit__()

123