Skip to main content

nomi_raise

Function nomi_raise 

Source
pub fn nomi_raise<T>(
    caller: &mut Caller<'_, T>,
    code: Option<Rooted<ArrayRef>>,
    message: Option<Rooted<ArrayRef>>,
    detail: Option<Rooted<AnyRef>>,
) -> Result<()>
Expand description

The __nomi_raise host fn body shared by every linker: reads the condition’s fields and always returns Err, carrying a ScriptRaise unless the code or message cannot be read.

§Errors

Always; a missing code or an unreadable code or message replaces the raise.