macro_rules! throw_err {
    ($error:ident $(,)?) => { ... };
    ($error:expr $(,)?) => { ... };
}
Expand description

Throws an error.

Example

let fail = false;
if fail {
    throw_err!(MyError);
}
Ok(())