Make errors types adjustable
Closed this issue · 4 comments
Finomnis commented
Currently everything is a Box<dyn Error>
, but as default template arguments for classes exist, we might make that a template argument with the default to Box<dyn Error>
.
Reasoning is that this simplifies passing errors from subsystems to this crate and back to the user again, without the user having to resort to weird runtime matching to get the original error type back.
Finomnis commented
This was a suggestion by @TheButlah in #13.
Finomnis commented
@TheButlah what's your opinion about this?
Finomnis commented
Released as 0.8.0-beta.0.
Feedback appreciated.
Finomnis commented
Released as 0.8.0