Interface UncaughtExceptionHandler


  • public interface UncaughtExceptionHandler
    Handles an exception caught by CompressionFilter. See CompressionFilter javadoc for why this exception needs to be handled by us and can't just be handled by the servlet container like it does all others.
    Author:
    Kohsuke Kawaguchi
    • Method Detail

      • reportException

        void reportException​(Throwable e,
                             javax.servlet.ServletContext context,
                             javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse rsp)
                      throws javax.servlet.ServletException,
                             IOException
        Called to render the exception as an HTTP response.
        Throws:
        javax.servlet.ServletException
        IOException