(
&self,
exc_type: PyObjectRef,
exc_val: OptionalArg,
exc_tb: OptionalArg,
vm: &VirtualMachine,
)
| 578 | |
| 579 | #[pymethod] |
| 580 | fn throw( |
| 581 | &self, |
| 582 | exc_type: PyObjectRef, |
| 583 | exc_val: OptionalArg, |
| 584 | exc_tb: OptionalArg, |
| 585 | vm: &VirtualMachine, |
| 586 | ) -> PyResult { |
| 587 | let err = vm.normalize_exception( |
| 588 | exc_type, |
| 589 | exc_val.unwrap_or_none(vm), |
| 590 | exc_tb.unwrap_or_none(vm), |
| 591 | )?; |
| 592 | Err(err) |
| 593 | } |
| 594 | } |
| 595 | |
| 596 | impl SelfIter for AwaitPromise {} |
nothing calls this directly
no test coverage detected