|0.1.2||Aug 27, 2019|
|0.1.1||Apr 11, 2019|
|0.1.0||Feb 18, 2019|
#960 in Rust patterns
689 downloads per month
Used in 9 crates (3 directly)
Aim of this library is to provide convenient way of adding statically typed context information to errors in Rust.
This crate provides two ways of adding context:
- to new error types by means of
- to existing errors by wrapping in
ErrorContexttype and converting to your type using
It provides extension methods for
Result type as well as some free functions to help with adding context.
For examples and usage see crate documentation at docs.rs.
If you are looking for more dynamic way of adding context to error messages see problem crate.