MindscapeHQ / raygun4java

Java SDK for the Raygun service
https://raygun.com
MIT License
23 stars 21 forks source link

adds support for removing wrapping exceptions #55

Closed jscottnz closed 6 years ago

jscottnz commented 6 years ago

This PR adds support for removing generic exceptions that are wrapping interesting exceptions like ServletException wrapping a NullPointerException

This PR also moves as much filtering code from the webprovider to core as possible.

RaygunClient.initialize(new DefaultRaygunServletClientFactory("kxiM7MSMbrTVvuYNSGklbw==", servletContext)
     .withRequestCookieFilters("JSESSIONID")
     .withWrappedExceptionStripping(NestedServletException.class, AnotherWrapper.class)
);