2 ms·
If you're writing library code and you are new to rust, just stick with `thiserror` and nest your error types (ie: have lower-level errors wrapped up in higher-
by mmastrac 3y ago
If you're writing library code and you are new to rust, just stick with `thiserror` and nest your error types (ie: have lower-level errors wrapped up in higher-level errors using #[from]). It's barely more effort than using the Any* error types and the benefits of having concrete errors greatly outweigh the tiny bit of extra effort.