Macro pliron::create_error
source ยท macro_rules! create_error { ($loc: expr, $kind: expr, $str: literal $($t:tt)*) => { ... }; ($loc: expr, $kind: expr, $err: expr) => { ... }; }
Expand description
Specify ErrorKind and create Error from any std::error::Error object. To create Result, use create_err! instead. The macro also accepts format! like arguments to create one-off errors. It may be shorter to just use verify_error!, input_error! or arg_error! instead.