Crate error_code
source ·Expand description
Error code library provides generic errno/winapi error wrapper
Use can define own Category
if you want to create new error wrapper.
Usage
use error_code::ErrorCode;
use std::fs::File;
File::open("non_existing");
println!("{}", ErrorCode::last_system());
Modules
- Definitions used by this library
- C types used inside crate
Structs
- Interface for error category
- Describes error code of particular category.
Constants
- Text to return when error fails to be converted into utf-8
- Text to return when cannot map error
Statics
- Posix error category, suitable for all environments.
- System error category, suitable for all environments.
Type Aliases
- Type alias for buffer to hold error code description.