Home
last modified time | relevance | path

Searched refs:new_exc (Results 1 – 6 of 6) sorted by relevance

/third_party/python/Lib/asyncio/
Dtasks.py256 new_exc = RuntimeError(
260 self.__step, new_exc, context=self._context)
263 new_exc = RuntimeError(
266 self.__step, new_exc, context=self._context)
277 new_exc = RuntimeError(
281 self.__step, new_exc, context=self._context)
288 new_exc = RuntimeError(
292 self.__step, new_exc, context=self._context)
295 new_exc = RuntimeError(f'Task got bad yield: {result!r}')
297 self.__step, new_exc, context=self._context)
Dunix_events.py398 new_exc = ConnectionError(
400 new_exc.__cause__ = exc
401 exc = new_exc
/third_party/python/Lib/
Dcontextlib.py539 def _fix_exception_context(new_exc, old_exc): argument
542 exc_context = new_exc.__context__
548 new_exc = exc_context
551 new_exc.__context__ = old_exc
673 def _fix_exception_context(new_exc, old_exc): argument
676 exc_context = new_exc.__context__
682 new_exc = exc_context
685 new_exc.__context__ = old_exc
/third_party/python/Lib/test/
Dtest_capi.py87 new_exc = TypeError("TEST")
93 orig_exc_info = _testcapi.set_exc_info(new_exc.__class__, new_exc, None)
103 self.assertSequenceEqual(new_exc_info, (new_exc.__class__, new_exc, None))
/third_party/python/Objects/
Dexceptions.c2947 PyObject *new_exc, *new_val, *new_tb; in _PyErr_TrySetFromCause() local
3034 PyErr_Fetch(&new_exc, &new_val, &new_tb); in _PyErr_TrySetFromCause()
3035 PyErr_NormalizeException(&new_exc, &new_val, &new_tb); in _PyErr_TrySetFromCause()
3037 PyErr_Restore(new_exc, new_val, new_tb); in _PyErr_TrySetFromCause()
/third_party/python/Doc/library/
Dexceptions.rst52 raise new_exc from original_exc
57 attribute to ``True``, so that using ``raise new_exc from None``