Function
fire_exception_handled
(
vm: &VirtualMachine,
code: &PyRef<PyCode>,
offset: u32,
exception: &PyObjectRef,
)
Source from the content-addressed store, hash-verified
| 966 | } |
| 967 | |
| 968 | pub fn fire_exception_handled( |
| 969 | vm: &VirtualMachine, |
| 970 | code: &PyRef<PyCode>, |
| 971 | offset: u32, |
| 972 | exception: &PyObjectRef, |
| 973 | ) -> PyResult<()> { |
| 974 | RERAISE_PENDING.with(|f| f.set(false)); |
| 975 | fire( |
| 976 | vm, |
| 977 | EVENT_EXCEPTION_HANDLED, |
| 978 | code, |
| 979 | offset, |
| 980 | &[vm.ctx.new_int(offset).into(), exception.clone()], |
| 981 | ) |
| 982 | } |
| 983 | |
| 984 | pub fn fire_py_unwind( |
| 985 | vm: &VirtualMachine, |
Tested by
no test coverage detected