ml-archive / bugsnag

Report errors with Bugsnag 🐛

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for excluding specific errors

steffendsommer opened this issue · comments

Consider introducing a way to exclude specific errors being thrown by the Bugsnag middleware. One approach could be to allow closures being passed in where the closured takes in Error and returns a Bool to indicate if that specific error should be thrown or not. Then the consumer of the package could easily adjust it to fit their needs.

Would probably want this and another bugsnag error protocol that errors can conform to and provide this information

@steffendsommer Implemented by #58. Will close this after that is merged.