24 releases

0.12.0 Jun 23, 2018
0.11.0 Sep 5, 2017
0.11.0-rc.2 Jul 28, 2017
0.10.0 Feb 25, 2017
0.2.2 Jul 21, 2016

#12 in Rust patterns

Download history 32418/week @ 2018-07-22 35905/week @ 2018-07-29 43886/week @ 2018-08-05 41273/week @ 2018-08-12 39825/week @ 2018-08-19 40511/week @ 2018-08-26 42041/week @ 2018-09-02 39512/week @ 2018-09-09 40449/week @ 2018-09-16 42101/week @ 2018-09-23 42883/week @ 2018-09-30 44440/week @ 2018-10-07 43496/week @ 2018-10-14

129,590 downloads per month
Used in 1,287 crates (674 directly)

MIT/Apache

65KB
958 lines

error-chain - Consistent error handling for Rust

Build Status Latest Version License

error-chain makes it easy to take full advantage of Rust's error handling features without the overhead of maintaining boilerplate error types and conversions. It implements an opinionated strategy for defining your own error types, as well as conversions from others' error types.

Documentation (crates.io).

Documentation (master).

Quick start

If you just want to set up your new project with error-chain, follow the quickstart.rs template, and read this intro to error-chain.

Supported Rust version

Please view the beginning of the Travis configuration file to see the oldest supported Rust version.

Note that error-chain supports older versions of Rust when built with default-features = false.

License

MIT/Apache-2.0

Dependencies

~112KB