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

Function fire_raise

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

Source from the content-addressed store, hash-verified

926}
927
928pub fn fire_raise(
929 vm: &VirtualMachine,
930 code: &PyRef<PyCode>,
931 offset: u32,
932 exception: &PyObjectRef,
933) -> PyResult<()> {
934 fire(
935 vm,
936 EVENT_RAISE,
937 code,
938 offset,
939 &[vm.ctx.new_int(offset).into(), exception.clone()],
940 )
941}
942
943/// Only fires if no RERAISE has been fired since the last EXCEPTION_HANDLED,
944/// preventing duplicate events from chained cleanup handlers.

Callers 2

runMethod · 0.85
gen_throwMethod · 0.85

Calls 3

fireFunction · 0.85
new_intMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected