Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/
Dcontextlib.py476 def _fix_exception_context(new_exc, old_exc): argument
479 exc_context = new_exc.__context__
485 new_exc = exc_context
488 new_exc.__context__ = old_exc
610 def _fix_exception_context(new_exc, old_exc): argument
613 exc_context = new_exc.__context__
619 new_exc = exc_context
622 new_exc.__context__ = old_exc
/external/python/cpython3/Lib/asyncio/
Dtasks.py280 new_exc = RuntimeError(
284 self.__step, new_exc, context=self._context)
287 new_exc = RuntimeError(
290 self.__step, new_exc, context=self._context)
301 new_exc = RuntimeError(
305 self.__step, new_exc, context=self._context)
312 new_exc = RuntimeError(
316 self.__step, new_exc, context=self._context)
319 new_exc = RuntimeError(f'Task got bad yield: {result!r}')
321 self.__step, new_exc, context=self._context)
Dunix_events.py388 new_exc = ConnectionError(
390 new_exc.__cause__ = exc
391 exc = new_exc
/external/python/cpython3/Lib/test/
Dtest_capi.py80 new_exc = TypeError("TEST")
86 orig_exc_info = _testcapi.set_exc_info(new_exc.__class__, new_exc, None)
96 self.assertSequenceEqual(new_exc_info, (new_exc.__class__, new_exc, None))
/external/autotest/frontend/afe/
Drpc_utils.py1091 new_exc = error.RPCException('RPC %s failed on shard %s due to '
1093 raise new_exc.__class__, new_exc, ei[2]
/external/python/cpython3/Objects/
Dexceptions.c2797 PyObject *new_exc, *new_val, *new_tb; in _PyErr_TrySetFromCause() local
2884 PyErr_Fetch(&new_exc, &new_val, &new_tb); in _PyErr_TrySetFromCause()
2885 PyErr_NormalizeException(&new_exc, &new_val, &new_tb); in _PyErr_TrySetFromCause()
2887 PyErr_Restore(new_exc, new_val, new_tb); in _PyErr_TrySetFromCause()
/external/python/cpython3/Doc/library/
Dexceptions.rst48 raise new_exc from original_exc
53 attribute to ``True``, so that using ``raise new_exc from None``