raise

Macro raise 

Source
macro_rules! raise {
    ($state: expr, $kind: expr, $string: literal) => { ... };
    ($state: expr, $kind: expr, $msg: expr) => { ... };
    ($state: expr, $kind: expr, $string: literal, $($fmt_args: expr),*) => { ... };
}
Expand description

Creates an exception wrapped in an Err and returns it from the current function or closure.

The first argument is the current State, which is used to add a backtrace to the call. The second argument is the kind of the exception, the third the message or format string. Any further arguments are passed into the format! string.