Home
last modified time | relevance | path

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

1234

/external/chromium-trace/catapult/common/py_utils/py_utils/
Dlock.py83 except pywintypes.error, exc_value:
84 if exc_value[0] == 33:
86 (target_file.name, exc_value[2]))
95 except pywintypes.error, exc_value:
96 if exc_value[0] == 158:
108 except IOError, exc_value:
109 if exc_value[0] == 11 or exc_value[0] == 35:
111 (target_file.name, exc_value[1]))
/external/python/cpython3/Lib/
Dtraceback.py454 def __init__(self, exc_type, exc_value, exc_traceback, *, limit=None, argument
462 _seen.add(exc_value)
465 if (exc_value and exc_value.__cause__ is not None
466 and exc_value.__cause__ not in _seen):
468 type(exc_value.__cause__),
469 exc_value.__cause__,
470 exc_value.__cause__.__traceback__,
477 if (exc_value and exc_value.__context__ is not None
478 and exc_value.__context__ not in _seen):
480 type(exc_value.__context__),
[all …]
Dpy_compile.py45 def __init__(self, exc_type, exc_value, file, msg=''): argument
49 exc_type, exc_value))
52 errmsg = "Sorry: %s: %s" % (exc_type_name,exc_value)
54 Exception.__init__(self,msg or errmsg,exc_type_name,exc_value,file)
57 self.exc_value = exc_value
/external/libmojo/third_party/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)
200 exc_type, exc_value, tb = exc_info
/external/python/cpython2/Lib/
Dpy_compile.py45 def __init__(self, exc_type, exc_value, file, msg=''): argument
48 tbtext = ''.join(traceback.format_exception_only(exc_type, exc_value))
51 errmsg = "Sorry: %s: %s" % (exc_type_name,exc_value)
53 Exception.__init__(self,msg or errmsg,exc_type_name,exc_value,file)
56 self.exc_value = exc_value
DSimpleXMLRPCServer.py270 exc_type, exc_value, exc_tb = sys.exc_info()
272 xmlrpclib.Fault(1, "%s:%s" % (exc_type, exc_value)),
371 exc_type, exc_value, exc_tb = sys.exc_info()
374 'faultString' : "%s:%s" % (exc_type, exc_value)}
635 exc_type, exc_value = sys.exc_info()[:2]
637 xmlrpclib.Fault(1, "%s:%s" % (exc_type, exc_value)),
Dsubprocess.py393 exc_type, exc_value, exc_trace = sys.exc_info()
404 raise exc_type, exc_value, exc_trace
980 exc_type, exc_value, tb = sys.exc_info()
983 exc_value,
985 exc_value.child_traceback = ''.join(exc_lines)
986 os.write(errpipe_write, pickle.dumps(exc_value))
/external/python/cpython3/Modules/
Datexitmodule.c68 PyObject *exc_type = NULL, *exc_value, *exc_tb, *r; in atexit_callfuncs() local
96 Py_XDECREF(exc_value); in atexit_callfuncs()
99 PyErr_Fetch(&exc_type, &exc_value, &exc_tb); in atexit_callfuncs()
102 PyErr_NormalizeException(&exc_type, &exc_value, &exc_tb); in atexit_callfuncs()
103 PyErr_Display(exc_type, exc_value, exc_tb); in atexit_callfuncs()
111 PyErr_Restore(exc_type, exc_value, exc_tb); in atexit_callfuncs()
/external/python/cpython3/Python/
Derrors.c73 PyObject *exc_value; in PyErr_SetObject() local
85 exc_value = tstate->exc_value; in PyErr_SetObject()
86 if (exc_value != NULL && exc_value != Py_None) { in PyErr_SetObject()
88 Py_INCREF(exc_value); in PyErr_SetObject()
110 if (exc_value != value) { in PyErr_SetObject()
111 PyObject *o = exc_value, *context; in PyErr_SetObject()
120 PyException_SetContext(value, exc_value); in PyErr_SetObject()
123 Py_DECREF(exc_value); in PyErr_SetObject()
350 *p_value = tstate->exc_value; in PyErr_GetExcInfo()
365 oldvalue = tstate->exc_value; in PyErr_SetExcInfo()
[all …]
Dtraceback.c488 PyObject *exc_type, *exc_value, *exc_tb; in PyTraceBack_Print() local
490 PyErr_Fetch(&exc_type, &exc_value, &exc_tb); in PyTraceBack_Print()
498 Py_XDECREF(exc_value); in PyTraceBack_Print()
506 PyErr_Restore(exc_type, exc_value, exc_tb); in PyTraceBack_Print()
/external/autotest/server/cros/
Dtradefed_chromelogin.py112 def __exit__(self, exc_type, exc_value, traceback): argument
132 self.reboot(exc_type, exc_value, traceback)
145 def reboot(self, exc_type=None, exc_value=None, traceback=None): argument
/external/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
/external/scapy/scapy/
Dautorun.py35 exc_type, exc_value, exc_tb = sys.exc_info()
36 if isinstance(exc_value, StopAutorun):
37 raise exc_value
/external/python/cpython3/Lib/multiprocessing/dummy/
Dconnection.py34 def __exit__(self, exc_type, exc_value, exc_tb): argument
72 def __exit__(self, exc_type, exc_value, exc_tb): argument
/external/autotest/server/hosts/
Dtestbed.py157 exc_type, exc_value, exc_traceback = sys.exc_info()
158 failures.append((adb_device.adb_serial, exc_type, exc_value,
162 for serial, exc_type, exc_value, exc_traceback in failures:
165 exc_type, exc_value, exc_traceback))
/external/python/cpython3/Lib/xmlrpc/
Dserver.py266 exc_type, exc_value, exc_tb = sys.exc_info()
268 Fault(1, "%s:%s" % (exc_type, exc_value)),
361 exc_type, exc_value, exc_tb = sys.exc_info()
364 'faultString' : "%s:%s" % (exc_type, exc_value)}
621 exc_type, exc_value = sys.exc_info()[:2]
623 Fault(1, "%s:%s" % (exc_type, exc_value)),
/external/autotest/client/cros/networking/
Dshill_context.py81 def __exit__(self, exc_type, exc_value, traceback): argument
160 def __exit__(self, exc_type, exc_value, traceback): argument
/external/python/cpython3/Lib/idlelib/
Dstackviewer.py137 exc_type, exc_value, exc_tb = sys.exc_info()
141 sys.last_value = exc_value
/external/python/cpython2/Lib/idlelib/
DStackViewer.py135 exc_type, exc_value, exc_tb = sys.exc_info()
139 sys.last_value = exc_value
DWindowList.py49 sys.exc_type, ":", sys.exc_value
/external/python/cpython3/PC/clinic/
Dwinreg.c.h84 PyObject *exc_value, PyObject *traceback);
93 PyObject *exc_value; in winreg_HKEYType___exit__() local
97 &exc_type, &exc_value, &traceback)) { in winreg_HKEYType___exit__()
100 return_value = winreg_HKEYType___exit___impl(self, exc_type, exc_value, traceback); in winreg_HKEYType___exit__()
/external/python/cpython3/Lib/unittest/
Dcase.py189 def __exit__(self, exc_type, exc_value, tb): argument
206 self.exception = exc_value.with_traceback(None)
211 if not expected_regex.search(str(exc_value)):
213 expected_regex.pattern, str(exc_value)))
234 def __exit__(self, exc_type, exc_value, tb): argument
235 self.warnings_manager.__exit__(exc_type, exc_value, tb)
324 def __exit__(self, exc_type, exc_value, tb): argument
/external/autotest/client/deps/lansim/src/py/
Dsimulator.py402 exc_type, exc_value, exc_traceback = sys.exc_info()
404 exc_type, exc_value, exc_traceback))
/external/python/cpython2/Doc/library/
Dtraceback.rst45 This is a shorthand for ``print_exception(sys.exc_type, sys.exc_value,
182 exc_type, exc_value, exc_traceback = sys.exc_info()
186 traceback.print_exception(exc_type, exc_value, exc_traceback,
195 print repr(traceback.format_exception(exc_type, exc_value,

1234