MCPcopy Index your code
hub / github.com/endbasic/endbasic / set_exception

Method set_exception

core/src/vm/context.rs:335–337  ·  view source on GitHub ↗

Registers that the instruction being processed threw an exception `message`. It's the responsibility of the execution loop to check for the presence of exceptions and to stop execution if needed.

(&mut self, message: S)

Source from the content-addressed store, hash-verified

333 /// It's the responsibility of the execution loop to check for the presence of exceptions and
334 /// to stop execution if needed.
335 fn set_exception<S: Into<String>>(&mut self, message: S) {
336 self.stop = Some(InternalStopReason::Exception(self.pc, message.into()));
337 }
338
339 fn push_frame(&mut self, frame: Frame) -> bool {
340 if self.call_stack.len() >= self.max_call_stack {

Callers 10

resolve_array_indexMethod · 0.80
push_frameMethod · 0.80
do_binary_integer_opMethod · 0.80
do_alloc_arrayMethod · 0.80
do_concatMethod · 0.80
do_double_to_integerMethod · 0.80
do_endMethod · 0.80
do_negate_integerMethod · 0.80
do_power_integerMethod · 0.80
do_returnMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected