pub trait Category { const NAME: &'static str; fn message(code: i32) -> Str; }
Describes category of Error, defining it’s semantics.
Category’s name, used in formatting to identify type of error code.
Returns the explanatory text for the code.