Documentation

error-code

Crates.io Documentation Rust

Error code library provides generic errno/winapi error wrapper

User can define own Category if you want to create new error wrapper.

Features

  • std - Enables std::error::Error implementation and conversion from std::io::Error

Usage

use error_code::ErrorCode;

use std::fs::File;

File::open("non_existing");
println!("{}", ErrorCode::last_system());