#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

#1814 in Rust patterns

Download history 5080/week @ 2024-07-21 4911/week @ 2024-07-28 3904/week @ 2024-08-04 6144/week @ 2024-08-11 5392/week @ 2024-08-18 5971/week @ 2024-08-25 5376/week @ 2024-09-01 2061/week @ 2024-09-08 4742/week @ 2024-09-15 4919/week @ 2024-09-22 4097/week @ 2024-09-29 2774/week @ 2024-10-06 4287/week @ 2024-10-13 4776/week @ 2024-10-20 3452/week @ 2024-10-27 3218/week @ 2024-11-03

15,923 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

~17KB