MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / push_host_error_by_id

Method push_host_error_by_id

compiler/src/modules/vm/init.rs:131–133  ·  view source on GitHub ↗

Test/host helper: raise a generic error (`VmErr::Raised(message)`) into host call `id`. */

(&mut self, id: u64, message: &str)

Source from the content-addressed store, hash-verified

129
130 /* Test/host helper: raise a generic error (`VmErr::Raised(message)`) into host call `id`. */
131 pub fn push_host_error_by_id(&mut self, id: u64, message: &str) -> bool {
132 self.inject_host_error_by_id(id, VmErr::Raised(message.into()))
133 }
134
135 /* Push a string event onto the event queue; consumed by the next `receive()` call. Mirrors what `run_push_event` does for WASM hosts. */
136 pub fn push_event(&mut self, message: &str) -> Result<(), VmErr> {

Callers 1

packages_casesFunction · 0.80

Calls 1

Tested by 1

packages_casesFunction · 0.64