Expand description
Script-raise host native: the boundary bridge for in-guest raises.
Since Tier 3.2, (error 'code "msg") and engine errors (commodity
mismatch) throw $nomi_error in-guest; this host fn is no longer the
raise primitive but the BOUNDARY BRIDGE (ADR-0026): the compiler wraps each
host-invoked body in a try_table that catches any uncaught $nomi_error,
reads its code/message, and call $__nomi_raises here. The fn never
returns normally; it always produces Err(wasmtime::Error::msg(...))
carrying the __nomi_raise:CODE:MSG marker that
scripting::runtime::classify_runtime_error parses into a
ScriptRaised { code, message } for the wire envelope.
Constants§
Functions§
- raise_
error - Builds the marker-prefixed
wasmtime::Errorthe classifier will parse. Extracted so the special form’s compile-time tests can assert the exact wire format without spinning up a wasm engine. - register