#error #context #layer #however #type #err-derive

err-context

Lightweight context layers for stdandard library errors

1 unstable release

0.1.0 Sep 28, 2019

#1757 in Rust patterns

Download history 2919/week @ 2024-05-06 6031/week @ 2024-05-13 4113/week @ 2024-05-20 3850/week @ 2024-05-27 3810/week @ 2024-06-03 3805/week @ 2024-06-10 4105/week @ 2024-06-17 3738/week @ 2024-06-24 2943/week @ 2024-07-01 1957/week @ 2024-07-08 2547/week @ 2024-07-15 5181/week @ 2024-07-22 4789/week @ 2024-07-29 3903/week @ 2024-08-05 6137/week @ 2024-08-12 5419/week @ 2024-08-19

20,545 downloads per month
Used in 8 crates (6 directly)

Apache-2.0 OR MIT

25KB
303 lines

err-context

Travis Build Status

This library allows one to attach context (layers) onto errors with minimal amount of work and analyze such multi-layer errors.

The API and working is heavily influenced by the failure crate. However, only the part that works with contexts/layers is present in here (for generating error types, see the err-derive, which implements the derive part of functionality). Furthermore, this library works with std errors.

Read the documentation before using.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~16KB