• This repository has been archived on 16/Aug/2021
  • Stars
    star
    730
  • Rank 62,081 (Top 2 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created over 8 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Error boilerplate for Rust

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