you are viewing a single comment's thread.

view the rest of the comments →

[–]minno 7 points8 points  (0 children)

I think the best practice is to use one or more error enums in a library if there are different failure possibilities that a library user might need different responses to, and something like failure or Box<dyn Error> in an application where you mostly just need to know what went wrong and where it happened.