Home
last modified time | relevance | path

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

123456

/external/opencv3/3rdparty/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.py454 exc_info = sys.exc_info()
455 self.handle_exception(exc_info, source_hint=source)
475 exc_info = sys.exc_info()
476 self.handle_exception(exc_info, source_hint=source)
553 exc_info = sys.exc_info()
554 self.handle_exception(exc_info, source_hint=source)
585 exc_info = None
594 exc_info = sys.exc_info()
595 if exc_info is not None:
596 self.handle_exception(exc_info, source_hint=source)
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/value/
Dfailure.py13 def __init__(self, page, exc_info, description=None, tir_label=None, argument
22 exc_type = exc_info[0].__name__
25 self._exc_info = exc_info
35 exc_info = cls._GetExcInfoFromMessage(message)
36 return FailureValue(page, exc_info)
43 return sys.exc_info()
54 def exc_info(self): member in FailureValue
78 d['value'] = GetStringFromExcInfo(self.exc_info)
101 def GetStringFromExcInfo(exc_info): argument
102 return ''.join(traceback.format_exception(*exc_info))
Dfailure_unittest.py30 exc_info_str = failure.GetStringFromExcInfo(v.exc_info)
41 v1 = failure.FailureValue(self.pages[0], sys.exc_info())
62 exc_info = sys.exc_info()
65 'name': exc_info[0].__name__,
67 'value': ''.join(traceback.format_exception(*exc_info))
/external/chromium-trace/catapult/third_party/Paste/paste/
Dcgitb_catcher.py47 exc_info = sys.exc_info()
50 exc_info)
51 response = self.exception_handler(exc_info, environ)
67 response = self.exception_handler(sys.exc_info(), environ)
73 sys.exc_info(), environ)
81 def exception_handler(self, exc_info, environ): argument
88 hook(*exc_info)
Dtransaction.py41 def error(self, exc_info): argument
90 def finalizer(exc_info=None): argument
91 if exc_info:
92 if isinstance(exc_info[1], HTTPException):
93 should_commit.append(exc_info[1].code)
103 def basictrans_start_response(status, headers, exc_info = None): argument
105 return start_response(status, headers, exc_info)
Drecursive.py321 def start_response(status, headers, exc_info=None): argument
322 if exc_info:
323 six.reraise(exc_info[0], exc_info[1], exc_info[2])
375 def start_response(status, headers, exc_info=None): argument
376 if exc_info:
377 six.reraise(exc_info[0], exc_info[1], exc_info[2])
Derrordocument.py72 def keep_status_start_response(status, headers, exc_info=None): argument
78 return start_response(self.status, self.headers, exc_info)
93 … keep_status_start_response('500 Server Error', [('Content-type', 'text/plain')], sys.exc_info())
172 def change_response(status, headers, exc_info=None): argument
200 return start_response(status, headers, exc_info)
300 def change_response(status, headers, exc_info=None): argument
327 return start_response(status, headers, exc_info)
332 error = str(sys.exc_info()[1])
356 def eat_start_response(status, headers, exc_info=None): argument
Dwsgilib.py134 got_exc = sys.exc_info()
182 error_callback(sys.exc_info())
213 self.error_callback(sys.exc_info())
228 return error_callback_app(environ, start_response, sys.exc_info())
271 self.environ, self.start_response, sys.exc_info())
327 def start_response(status, headers, exc_info=None): argument
328 if exc_info:
332 six.reraise(exc_info[0], exc_info[1], exc_info[2])
335 exc_info = None
464 def replacement_start_response(status, headers, exc_info=None): argument
[all …]
Dlint.py155 exc_info = args[2]
157 exc_info = None
162 check_exc_info(exc_info)
418 def check_exc_info(exc_info): argument
419 assert exc_info is None or type(exc_info) is type(()), (
420 "exc_info (%r) is not a tuple: %r" % (exc_info, type(exc_info)))
Dmodpython.py176 def start_response(self, status, headers, exc_info=None): argument
177 if exc_info:
180 six.reraise(exc_info[0], exc_info[1], exc_info[2])
182 exc_info = None
/external/autotest/client/common_lib/cros/
Dretry.py151 exc_info = None
165 exc_info = None
180 exc_info = sys.exc_info()
186 if not exc_info:
189 raise exc_info[0], exc_info[1], exc_info[2]
/external/chromium-trace/catapult/third_party/Paste/paste/exceptions/
Derrormiddleware.py145 exc_info = sys.exc_info()
148 if isinstance(exc_info[1], expect):
152 exc_info)
154 response = self.exception_handler(exc_info, environ)
160 exc_info = None
168 def exception_handler(self, exc_info, environ): argument
175 exc_info, environ['wsgi.errors'],
235 exc_info = sys.exc_info()
237 exc_info, self.environ)
246 exc_info)
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/internal/results/
Dgtest_progress_reporter_unittest.py67 exc_info = self.CreateException()
68 results.AddValue(failure.FailureValue(test_story_set.stories[0], exc_info))
72 exception_trace = ''.join(traceback.format_exception(*exc_info))
104 exc_info = self.CreateException()
112 results.AddValue(failure.FailureValue(test_story_set.stories[1], exc_info))
117 results.AddValue(failure.FailureValue(test_story_set.stories[2], exc_info))
125 exception_trace = ''.join(traceback.format_exception(*exc_info))
147 exc_info = self.CreateException()
158 exception_trace = ''.join(traceback.format_exception(*exc_info))
159 results.AddValue(failure.FailureValue(test_story_set.stories[1], exc_info))
/external/chromium-trace/catapult/third_party/Paste/paste/debug/
Dprofile.py50 def replace_start_response(status, headers, exc_info=None): argument
52 start_response(status, headers, exc_info)
166 exc_info = None
172 exc_info = sys.exc_info()
202 if exc_info:
204 six.reraise(exc_info[0], exc_info[1], exc_info[2])
/external/autotest/tko/parsers/test/
Dunittest_hotfix.py52 exc_info = self.__exc_info
55 exc_info = self._exc_info
65 result.addError(self, exc_info())
73 result.addFailure(self, exc_info())
75 result.addSkipped(self, exc_info())
79 result.addError(self, exc_info())
86 result.addError(self, exc_info())
/external/chromium-trace/catapult/third_party/Paste/paste/util/
Dscgiserver.py89 def start_response(status, response_headers, exc_info=None): argument
90 if exc_info:
94 six.reraise(exc_info[0], exc_info[1], exc_info[2])
96 exc_info = None # avoid dangling circular ref
Dtemplate.py204 exc_info = sys.exc_info()
205 e = exc_info[1]
211 six.reraise(exc_info[0], e, exc_info[2])
218 exc_info = sys.exc_info()
219 e = exc_info[1]
221 six.reraise(exc_info[0], e, exc_info[2])
236 exc_info = sys.exc_info()
237 e = exc_info[1]
239 six.reraise(exc_info[0], e, exc_info[2])
/external/chromium-trace/catapult/third_party/Paste/paste/evalexception/
Dmiddleware.py92 sys.exc_info())
301 def detect_start_response(status, headers, exc_info=None): argument
303 return start_response(status, headers, exc_info)
318 exc_info = sys.exc_info()
320 if isinstance(exc_info[1], expected):
334 exc_info)
340 exc_data = collector.collect_exception(*exc_info)
341 debug_info = DebugInfo(count, exc_info, exc_data, base_path,
349 exc_data = collector.collect_exception(*exc_info)
358 def exception_handler(self, exc_info, environ): argument
[all …]
/external/autotest/server/cros/
Dstress.py64 self._exc_info = sys.exc_info()
108 exc_info = self._exc_info
110 raise exc_info[0], exc_info[1], exc_info[2]
/external/chromium-trace/catapult/third_party/webtest/webtest/
Dlint.py183 exc_info = args[2]
185 exc_info = None
190 check_exc_info(exc_info)
488 def check_exc_info(exc_info): argument
489 assert exc_info is None or type(exc_info) is tuple, (
490 "exc_info (%r) is not a tuple: %r" % (exc_info, type(exc_info)))
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome_inspector/
Ddevtools_http.py45 raise DevToolsClientConnectionError, (e,), sys.exc_info()[2]
55 raise DevToolsClientConnectionError, (e,), sys.exc_info()[2]
93 raise DevToolsClientUrlError, (e,), sys.exc_info()[2]
94 raise DevToolsClientConnectionError, (e,), sys.exc_info()[2]
/external/libxml2/python/
Dsetup.py107 print(sys.exc_info()[0], sys.exc_info()[1])
133 print(sys.exc_info()[0], sys.exc_info()[1])
Dsetup.py.in107 print(sys.exc_info()[0], sys.exc_info()[1])
133 print(sys.exc_info()[0], sys.exc_info()[1])
/external/chromium-trace/catapult/third_party/Paste/paste/cowbell/
D__init__.py21 def repl_start_response(status, headers, exc_info=None): argument
26 start_response(status, headers, exc_info)
28 return start_response(status, headers, exc_info)

123456