3 releases
| 0.1.2 | Aug 27, 2019 |
|---|---|
| 0.1.1 | Apr 11, 2019 |
| 0.1.0 | Feb 18, 2019 |
#116 in #information
184 downloads per month
Used in 10 crates
(3 directly)
19KB
298 lines
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
WithContexttrait, - to existing errors by wrapping in
ErrorContexttype and converting to your type usingFromtrait.
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.