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

err-context

Lightweight context layers for stdandard library errors

1 unstable release

0.1.0 Sep 28, 2019

#2564 in Rust patterns

Download history 1804/week @ 2023-11-20 1844/week @ 2023-11-27 4291/week @ 2023-12-04 3603/week @ 2023-12-11 2142/week @ 2023-12-18 1371/week @ 2023-12-25 2367/week @ 2024-01-01 2708/week @ 2024-01-08 2445/week @ 2024-01-15 2208/week @ 2024-01-22 2543/week @ 2024-01-29 3734/week @ 2024-02-05 3527/week @ 2024-02-12 1993/week @ 2024-02-19 2949/week @ 2024-02-26 4529/week @ 2024-03-04

13,165 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