Crate error_code
source · [−]Expand description
Alternative Error
It’s goal is to be able to provide simplified Error
which would work in no_std
environment
Features
std
- enablesstd::error::Error
implementation
Categories
Library introduces the concept of categories, similar to that of C++ std::error_category
.
Each category can be used to describe set of integral error codes.
Following implementations are builtin:
Structs
Describes error code in particular category.
Posix error category, suitable for all environments.
System error category, suitable for all environments.
Traits
Describes category of Error, defining it’s semantics.
Identifies object as error code, allowing for it to be converted with right Category
Describes way to convert from one Category
into another.
Type Definitions
Alias to Plain error code, without any extra category
Alias to Posix error code
Static string used to store error message.
Alias to System error code