BlackSheep
BlackSheep copied to clipboard
Ability to set a single handler for all exceptions that inherit from a base exception
🚀 Feature Request
Ability to set a single handler for all exceptions that inherit from a base exception. However, the exception handler mapper would need to always resolve to the youngest descendant for an exception.
This is useful when using a third party library which has a lot of specific exceptions that you want to handle in the same way.
If this is deemed useful for everyone and implemented before : #186, then I believe #186 could be closed as one could set a handler for Exception which would always be called last if there is no handler for the rest of the exception's hierarchy.
This is another very good recommendation, we will look into this and see if it creates any side effect - but I don't think so. I think #186 would make sense in any case. :)
Good suggestion, I love it!