error-chain
error-chain copied to clipboard
Error boilerplate for Rust
The link: https://docs.rs/error-chain/0.7.1/error_chain/example_generated From the following page: https://docs.rs/error-chain/0.7.1/error_chain/
Apparently the `backtrace-sys` dependency is always compiled, regardless of whether the `backtrace` feature is present. This bit me because when compiling for the `x86_64-unknown-linux-musl` target and the musl C library...
If you call a function in a library that returns a `foriegn_links`'d error, it gets converted into the appropriate type. However, if you `chain_err(|| "library call")`, the conversion is skipped....
Right now error-chain expects errors to be a linear sequence of errors, but twice recently I've encountered situations where I had two errors at the same time and had to...
I'm using error-chain in some code: ```rust #[recursion_limit = "1024"] error_chain! { errors { Bundle2Decode(msg: String) { description("bundle2 decode error") display("{}", msg) } } } ``` and I'm trying to...
Hello, I have an API which returns a `Result
Hi. Is there any way to accomplish this? For something like ``` std::sync::PoisonError ``` for example.
I've been playing around with Futures and Tokio lately, and one of the things that's been a major pain point has been dealing with errors from Futures. I think it...
Hi, I have a "platform" crate, which provides a trait that users of the platform will implement and pass into other platform code. This trait returns a `Result`, so that...