/third_party/node/tools/inspector_protocol/jinja2/ |
D | debug.py | 117 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 …]
|
D | environment.py | 492 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 …]
|
D | asyncsupport.py | 37 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)
|
D | nativetypes.py | 211 exc_info = sys.exc_info() 213 return self.environment.handle_exception(exc_info, True)
|
/third_party/python/Lib/test/ |
D | test_traceback.py | 309 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 …]
|
D | test_exceptions.py | 321 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 …]
|
D | test_generators.py | 180 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 …]
|
D | test_with.py | 69 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 …]
|
D | inspect_fodder.py | 45 self.ex = sys.exc_info() 82 tb = sys.exc_info()[2]
|
D | test_cgitb.py | 27 html = cgitb.html(sys.exc_info()) 35 text = cgitb.text(sys.exc_info())
|
/third_party/python/Lib/wsgiref/ |
D | handlers.py | 225 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())
|
D | validate.py | 166 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/ |
D | errors.c | 79 _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__.py | 167 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/ |
D | suite.py | 181 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)
|
D | case.py | 68 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/ |
D | fix_sys_exc.py | 16 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/ |
D | setup.py.in | 107 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/ |
D | test_framework_parser.py | 127 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/ |
D | shutil.py | 598 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 …]
|
D | contextlib.py | 339 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.py | 252 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/ |
D | cgitb.rst | 60 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/ |
D | wsgi.py | 78 def start_response(status, headers, exc_info=None): argument 81 …exc_info = None # avoid dangling circular ref - TODO is this necessary? borrowed from snippet in W…
|
/third_party/PyYAML/tests/lib/ |
D | test_schema.py | 89 print("Error:", sys.exc_info()[0], '(', sys.exc_info()[1], ')')
|