Skip to main content

ogeom_err

Macro ogeom_err 

Source
macro_rules! ogeom_err {
    ($variant:ident, $msg:literal) => { ... };
    ($variant:ident, $fmt:literal, $($arg:tt)*) => { ... };
}
Expand description

Build an OgeomError with a formatted cause.

let e = ogeom_err!(Construction, "radius {} is not positive", -1.0);
assert!(matches!(e, OgeomError::Construction(_)));