macro_rules! vortex_err {
(Context: $msg:literal, $err:expr) => { ... };
(External: $err:expr $(,)?) => { ... };
($fmt:literal $(, $arg:expr)* $(,)?) => { ... };
($err:expr $(,)?) => { ... };
}Expand description
A convenient macro for creating a VortexError.
use vortex_error::vortex_err;
let err = vortex_err!("negative length {}", -1);
assert!(err.to_string().starts_with("negative length -1"));