Macro bitbazaar::err

source ·
macro_rules! err {
    ($err_variant:expr) => { ... };
    ($err_variant:expr, $str:expr) => { ... };
    ($err_variant:expr, $str:expr, $($arg:expr),*) => { ... };
}
Expand description

A macro for building Report<ArbitraryErrorStackErr> objects with string context easily.

err!(Err) is equivalent to Report::new(Err)

err!(Err, "foo") is equivalent to Report::new(Err).attach_printable("foo")

err!(Err, "foo: {}", "bar") is equivalent to Report::new(Err).attach_printable(format!("foo: {}", "bar"))///