https://github.com/vorner/err-context
Lightweight and easy to use error chaining
https://github.com/vorner/err-context
Last synced: 8 months ago
JSON representation
Lightweight and easy to use error chaining
- Host: GitHub
- URL: https://github.com/vorner/err-context
- Owner: vorner
- License: apache-2.0
- Created: 2019-09-27T21:22:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-28T19:41:45.000Z (almost 7 years ago)
- Last Synced: 2024-10-30T02:42:07.882Z (over 1 year ago)
- Language: Rust
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# err-context
[](https://travis-ci.org/vorner/err-context)
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](https://crates.io/crates/failure) crate. However, only the part that
works with contexts/layers is present in here (for generating error types, see
the [err-derive](https://crates.io/crates/err-derive), which implements the
derive part of functionality). Furthermore, this library works with `std`
errors.
Read [the documentation](https://docs.rs/err-context) before using.
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
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.