MCPcopy Create free account
hub / github.com/EasyIME/PIME / raise_exc_info

Function raise_exc_info

python/python3/tornado/util.py:164–175  ·  view source on GitHub ↗
(
    exc_info: Tuple[Optional[type], Optional[BaseException], Optional["TracebackType"]]
)

Source from the content-addressed store, hash-verified

162
163
164def raise_exc_info(
165 exc_info: Tuple[Optional[type], Optional[BaseException], Optional["TracebackType"]]
166) -> typing.NoReturn:
167 try:
168 if exc_info[1] is not None:
169 raise exc_info[1].with_traceback(exc_info[2])
170 else:
171 raise TypeError("raise_exc_info called with no exception")
172 finally:
173 # Clear the traceback reference from our stack frame to
174 # minimize circular references that slow down GC.
175 exc_info = (None, None, None)
176
177
178def errno_from_exception(e: BaseException) -> Optional[int]:

Callers 2

__rethrowMethod · 0.90

Calls

no outgoing calls

Tested by 2

__rethrowMethod · 0.72