error-chain-mini
I think error-chain is good, especially I love chain_err
method.
However, sometimes I feel it too complex.
I don't want to generate ResultExt
and ChainedError
by macro. Isn't it confusing?
So, I made this tiny library, providing very straight forward implementation of
ResultExt
, ChainedError
, and some related traits.
In addition, You can use derive
to implement your own ErrorKind
type.
Example
extern crate error_chain_mini;
extern crate error_chain_mini_derive;
use io;
use *;
use Error;
type MyError = ;
type MyResult<T> = ;
Required minimum version of Rust
1.26.0 (match_default_bindings is needed)
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.