Support for excluding specific errors
steffendsommer opened this issue · comments
Steffen D. Sommer commented
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.
Brett R. Toomey commented
Would probably want this and another bugsnag error protocol that errors can conform to and provide this information
Siemen Sikkema commented
@steffendsommer Implemented by #58. Will close this after that is merged.