ERROR as `raise ERROR from CAUSE` leaves it.
(error: BaseException, cause: BaseException | None)
| 569 | |
| 570 | |
| 571 | def raised_from(error: BaseException, cause: BaseException | None) -> BaseException: |
| 572 | """ERROR as `raise ERROR from CAUSE` leaves it.""" |
| 573 | try: |
| 574 | raise error from cause |
| 575 | except BaseException as raised: |
| 576 | return raised |
| 577 | |
| 578 | |
| 579 | def raised_while_handling(error: BaseException, context: BaseException) -> BaseException: |
no outgoing calls
no test coverage detected