Trait error_code::IntoCategory [−][src]
pub trait IntoCategory<C: Category>: Category + Sized { fn map_code(code: ErrorCode<Self>) -> ErrorCode<C>; }
Describes way to convert from one Category
into another.
Required methods
fn map_code(code: ErrorCode<Self>) -> ErrorCode<C>
[src]
Converts error from category into own category.