Skip to main content

runtime_error

Function runtime_error 

Source
pub fn runtime_error(message: &str) -> !
👎Deprecated since 1.1.0:

a module may not end the application; return exception(out, source, message) instead

Expand description

Raise a fatal module error, taking the whole host process down.

Deprecated as of 2026-08-28, and not for modules to call. A module may never end the application — see docs/todo/errors-as-particles.md. Report a failure by returning an exception instead, which the program receives as an ordinary value and may examine or ignore.

Kept only because runtime.c itself still uses it internally for conditions with no frame to return to (out of memory). It will leave this crate’s API entirely once the C runtime has an error channel.