Macro vipers::program_err [−][src]
macro_rules! program_err {
($error : tt $(,) ?) => { ... };
}
Expand description
Returns the given error as a program error.
Example
let fail = false;
if fail {
return program_err!(MyError);
}
Ok(())