std.process.panic
Show source codeHide source code
fn pub panic(message: String) -> Never {
_INKO.panic(message)
}
fn pub static panic(message: String) -> Never
Terminates the program with an error message.
A panic is an unrecoverable error meant to guard against code bugs. For
runtime errors, use try
and throw
instead.