Originally posted by mdedetrich
View Post
1. You should define your own error types manually; it's long and here's how to do it.
2. Actually, use this crate called error-chain to define your error types; it's limited, though.
3. Nevermind error-chain, use this crate called failure; it will inject its own types into your public API, though.
Finally, BurntSushi (author of byteorder) had seen enough of this crap and released this-error. It basically makes generating your own errors really easy, to include propagation and specifying the underlying cause, but uses only types from standard Rust.
Comment