21 releases (12 stable)
3.3.1 | Sep 10, 2024 |
---|---|
3.2.0 | Feb 27, 2024 |
3.0.0 | Sep 30, 2023 |
2.3.1 | Jan 21, 2022 |
0.1.2 | Jan 23, 2020 |
#125 in Rust patterns
421,166 downloads per month
Used in 1,327 crates
(6 directly)
26KB
516 lines
error-code
Error code library provides generic errno/winapi error wrapper
User 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());
lib.rs
:
Error code library provides generic errno/winapi error wrapper
User 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());