MCPcopy Index your code
hub / github.com/RustPython/RustPython / fire_exception_handled

Function fire_exception_handled

crates/vm/src/stdlib/sys/monitoring.rs:968–982  ·  view source on GitHub ↗
(
    vm: &VirtualMachine,
    code: &PyRef<PyCode>,
    offset: u32,
    exception: &PyObjectRef,
)

Source from the content-addressed store, hash-verified

966}
967
968pub 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
984pub fn fire_py_unwind(
985 vm: &VirtualMachine,

Callers 1

unwind_blocksMethod · 0.85

Calls 5

fireFunction · 0.85
withMethod · 0.80
setMethod · 0.45
new_intMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected