macro_rules! anyerr { () => { ... }; ($str:expr) => { ... }; ($str:expr, $($arg:expr),*) => { ... }; }
Expand description
A macro for building Report<AnyErr> objects with string information easily.
anyerr!() is equivalent to Report::new(AnyErr)
anyerr!("foo") is equivalent to Report::new(AnyErr).attach_printable("foo")
anyerr!("foo: {}", "bar") is equivalent to Report::new(AnyErr).attach_printable(format!("foo: {}", "bar"))