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

Returns the given error as a program error.

Example

let fail = false;
if fail {
    return program_err!(MyError);
}