Easy-error
This crate is a lightweight error handling library meant to play well with the standard Error
trait.
It is designed for quick prototyping or for Command-line applications where any error will simply bubble up to the user.
There are four major components of this crate:
- A basic, string-based error type that is meant for either quick prototyping or human-facing errors.
- A nice way to iterate over the causes of an error.
- Some macros that make returning errors slightly more ergonomic.
- A "termination" type that produces nicely formatted error messages when returned from the
main
function.
Rust Version Requirements
The current version requires Rustc 1.32 or newer. In general, this crate will be compilable with the Rustc version available on the oldest Ubuntu LTS release. Any change that requires a new Rustc version will be considered a breaking change and will be handled accordingly.
Example
use ;
use ;