macro_rules! error { ($err_variant:ident, $fmt_str: literal $(,$arg: expr)*) => { ... }; }
This macro can only be used for Error variants that have a String field. Those are: IO, Codec, Provider, Other.
Error
String
IO
Codec
Provider
Other