Home
last modified time | relevance | path

Searched refs:exc_info (Results 1 – 25 of 173) sorted by relevance

1234567

/third_party/node/tools/inspector_protocol/jinja2/
Ddebug.py117 def exc_info(self): member in ProcessedTraceback
132 def make_traceback(exc_info, source_hint=None): argument
134 exc_type, exc_value, tb = exc_info
136 exc_info = translate_syntax_error(exc_value, source_hint)
140 return translate_exception(exc_info, initial_skip)
147 exc_info = (error.__class__, error, None)
151 return fake_exc_info(exc_info, filename, error.lineno)
154 def translate_exception(exc_info, initial_skip=0): argument
158 tb = exc_info[2]
183 tb = fake_exc_info(exc_info[:2] + (tb,), template.filename,
[all …]
Denvironment.py492 exc_info = sys.exc_info()
493 self.handle_exception(exc_info, source_hint=source)
513 exc_info = sys.exc_info()
514 self.handle_exception(exc_info, source_hint=source)
590 exc_info = sys.exc_info()
591 self.handle_exception(exc_info, source_hint=source_hint)
622 exc_info = None
631 exc_info = sys.exc_info()
632 if exc_info is not None:
633 self.handle_exception(exc_info, source_hint=source)
[all …]
Dasyncsupport.py37 exc_info = sys.exc_info()
40 yield self.environment.handle_exception(exc_info, True)
69 exc_info = sys.exc_info()
70 return self.environment.handle_exception(exc_info, True)
Dnativetypes.py211 exc_info = sys.exc_info()
213 return self.environment.handle_exception(exc_info, True)
/third_party/python/Lib/test/
Dtest_traceback.py309 type_, value, tb = sys.exc_info()
568 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()
999 type_, value, tb = sys.exc_info()
1078 _, _, tb = sys.exc_info()
1166 exc_info = sys.exc_info()
1167 exc = traceback.TracebackException(*exc_info)
1169 traceback.walk_tb(exc_info[2]))
[all …]
Dtest_exceptions.py321 exc, err, tb = sys.exc_info()
333 exc, err, tb = sys.exc_info()
537 tb = sys.exc_info()[2]
572 tb = sys.exc_info()[2]
794 yield sys.exc_info()[0]
795 yield sys.exc_info()[0]
796 yield sys.exc_info()[0]
799 self.assertEqual(sys.exc_info()[0], None)
801 self.assertEqual(sys.exc_info()[0], None)
810 self.assertEqual(sys.exc_info()[0], TypeError)
[all …]
Dtest_generators.py180 self.assertEqual(sys.exc_info()[0], None)
184 self.assertEqual(sys.exc_info()[0], ValueError)
189 self.assertEqual(sys.exc_info()[0], ValueError)
211 self.assertEqual(sys.exc_info(), (None, None, None))
215 self.assertEqual(sys.exc_info()[0], ValueError)
223 self.assertEqual(sys.exc_info(), (None, None, None))
228 self.assertEqual(sys.exc_info()[0], None)
234 self.assertEqual(sys.exc_info()[0], TypeError)
237 self.assertEqual(sys.exc_info()[0], ValueError)
239 self.assertIsNone(sys.exc_info()[0])
[all …]
Dtest_with.py69 if not self.__exit__(*sys.exc_info()):
73 def __exit__(self, *exc_info): argument
77 ex = exc_info
83 ex = sys.exc_info()
85 if ex is not exc_info:
100 def __exit__(self, *exc_info): argument
102 self.exit_args = exc_info
103 return Nested.__exit__(self, *exc_info)
691 def __exit__(self, *exc_info): argument
693 self.exc_info = exc_info
[all …]
Dinspect_fodder.py45 self.ex = sys.exc_info()
82 tb = sys.exc_info()[2]
Dtest_cgitb.py27 html = cgitb.html(sys.exc_info())
35 text = cgitb.text(sys.exc_info())
/third_party/python/Lib/wsgiref/
Dhandlers.py225 def start_response(self, status, headers,exc_info=None): argument
228 if exc_info:
232 raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
234 exc_info = None # avoid dangling circular ref
361 def log_exception(self,exc_info): argument
370 exc_info[0], exc_info[1], exc_info[2],
375 exc_info = None
379 self.log_exception(sys.exc_info())
398 start_response(self.error_status,self.error_headers[:],sys.exc_info())
Dvalidate.py166 exc_info = args[2]
168 exc_info = None
173 check_exc_info(exc_info)
430 def check_exc_info(exc_info): argument
431 assert_(exc_info is None or type(exc_info) is tuple,
432 "exc_info (%r) is not a tuple: %r" % (exc_info, type(exc_info)))
/third_party/python/Python/
Derrors.c79 _PyErr_StackItem *exc_info = tstate->exc_info; in _PyErr_GetTopmostException() local
80 while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) && in _PyErr_GetTopmostException()
81 exc_info->previous_item != NULL) in _PyErr_GetTopmostException()
83 exc_info = exc_info->previous_item; in _PyErr_GetTopmostException()
85 return exc_info; in _PyErr_GetTopmostException()
471 _PyErr_StackItem *exc_info = _PyErr_GetTopmostException(tstate); in _PyErr_GetExcInfo() local
472 *p_type = exc_info->exc_type; in _PyErr_GetExcInfo()
473 *p_value = exc_info->exc_value; in _PyErr_GetExcInfo()
474 *p_traceback = exc_info->exc_traceback; in _PyErr_GetExcInfo()
495 oldtype = tstate->exc_info->exc_type; in PyErr_SetExcInfo()
[all …]
/third_party/python/Lib/logging/
D__init__.py167 return sys.exc_info()[2].tb_frame.f_back
284 msg, args, exc_info, func=None, sinfo=None, **kwargs): argument
322 self.exc_info = exc_info
682 if record.exc_info:
686 record.exc_text = self.formatException(record.exc_info)
1019 t, v, tb = sys.exc_info()
1508 def exception(self, msg, *args, exc_info=True, **kwargs): argument
1512 self.error(msg, *args, exc_info=exc_info, **kwargs)
1585 def makeRecord(self, name, level, fn, lno, msg, args, exc_info, argument
1591 rv = _logRecordFactory(name, level, fn, lno, msg, args, exc_info, func,
[all …]
/third_party/python/Lib/unittest/
Dsuite.py181 for exc_info in currentClass.tearDown_exceptions:
183 result, exc_info[1], 'setUpClass', className,
184 info=exc_info)
246 result.addError(error, sys.exc_info())
316 for exc_info in previousClass.tearDown_exceptions:
318 raise exc_info[1]
320 self._createClassOrModuleLevelException(result, exc_info[1],
323 info=exc_info)
Dcase.py68 exc_info = sys.exc_info()
70 self.expectedFailure = exc_info
73 self.errors.append((test_case, exc_info))
76 exc_info = None
511 for test, exc_info in errors:
513 result.addSubTest(test.test_case, test, exc_info)
514 elif exc_info is not None:
515 if issubclass(exc_info[0], self.failureException):
516 result.addFailure(test, exc_info)
518 result.addError(test, exc_info)
[all …]
/third_party/python/Lib/lib2to3/fixes/
Dfix_sys_exc.py16 exc_info = ["exc_type", "exc_value", "exc_traceback"] variable in FixSysExc
20 """ % '|'.join("'%s'" % e for e in exc_info)
24 index = Number(self.exc_info.index(sys_attr.value))
/third_party/libxml2/python/
Dsetup.py.in107 print(sys.exc_info()[0], sys.exc_info()[1])
133 print(sys.exc_info()[0], sys.exc_info()[1])
/third_party/mindspore/tests/ut/python/profiler/parser/
Dtest_framework_parser.py127 with pytest.raises(ProfilerFileNotFoundException) as exc_info:
129 assert exc_info.value.error_code == '50546084'
130 assert exc_info.value.message == 'The file <Framework> not found.'
/third_party/python/Lib/
Dshutil.py598 onerror(os.scandir, path, sys.exc_info())
610 onerror(os.path.islink, fullname, sys.exc_info())
617 onerror(os.unlink, fullname, sys.exc_info())
621 onerror(os.rmdir, path, sys.exc_info())
630 onerror(os.scandir, path, sys.exc_info())
644 onerror(os.lstat, fullname, sys.exc_info())
650 onerror(os.open, fullname, sys.exc_info())
658 onerror(os.rmdir, fullname, sys.exc_info())
667 onerror(os.path.islink, fullname, sys.exc_info())
674 onerror(os.unlink, fullname, sys.exc_info())
[all …]
Dcontextlib.py339 def __exit__(self, *exc_info): argument
365 async def __aexit__(self, *exc_info): argument
538 frame_exc = sys.exc_info()[1]
566 new_exc_details = sys.exc_info()
672 frame_exc = sys.exc_info()[1]
704 new_exc_details = sys.exc_info()
/third_party/grpc/src/python/grpcio/grpc/
D_interceptor.py252 return _FailureOutcome(exception, sys.exc_info()[2])
301 return _FailureOutcome(exception, sys.exc_info()[2])
338 return _FailureOutcome(exception, sys.exc_info()[2])
391 return _FailureOutcome(exception, sys.exc_info()[2])
440 return _FailureOutcome(exception, sys.exc_info()[2])
477 return _FailureOutcome(exception, sys.exc_info()[2])
/third_party/python/Doc/library/
Dcgitb.rst60 the result of :func:`sys.exc_info`), formatting its traceback as text and
69 the result of :func:`sys.exc_info`), formatting its traceback as HTML and
82 :func:`sys.exc_info`. If the *info* argument is not supplied, the current
83 exception is obtained from :func:`sys.exc_info`.
/third_party/nghttp2/python/
Dwsgi.py78 def start_response(status, headers, exc_info=None): argument
81exc_info = None # avoid dangling circular ref - TODO is this necessary? borrowed from snippet in W…
/third_party/PyYAML/tests/lib/
Dtest_schema.py89 print("Error:", sys.exc_info()[0], '(', sys.exc_info()[1], ')')

1234567