#error

err-context

Lightweight context layers for stdandard library errors

1 unstable release

0.1.0 Sep 28, 2019

#80 in #error

Download history 494/week @ 2021-08-16 684/week @ 2021-08-23 630/week @ 2021-08-30 656/week @ 2021-09-06 636/week @ 2021-09-13 537/week @ 2021-09-20 760/week @ 2021-09-27 806/week @ 2021-10-04 601/week @ 2021-10-11 500/week @ 2021-10-18 649/week @ 2021-10-25 762/week @ 2021-11-01 573/week @ 2021-11-08 831/week @ 2021-11-15 1032/week @ 2021-11-22 734/week @ 2021-11-29

3,210 downloads per month
Used in 8 crates (6 directly)

Apache-2.0 OR MIT

24KB
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

~0–540KB
~11K SLoC

k]