Macro raise

Source
macro_rules! raise {
    ($($arg:tt)*) => { ... };
}
Expand description

Macro to format and return Err(Fail::new(..)).

Arguments format is same as std::format!().

ยงExample

use tiny_fail::{raise, Fail};

fn foo() -> Result<(), Fail> {
    raise!("Some error caused by {}", 123);
}