Interface ExceptionHandlingListener

  • All Known Implementing Classes:
    NullExceptionHandlingListener

    public interface ExceptionHandlingListener
    Listener performing operations when dealing with an error. Order of methods called:
    • 1. startHandling
    • 2. beforeSetErrorPageAttribute
    • 3. beforeForwardToErrorPage
    • 4. afterDispatch
    Author:
    arussel
    • Method Detail

      • startHandling

        void startHandling​(Throwable t,
                           javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws IOException,
                           javax.servlet.ServletException
        Error has happened, things to do before error is dealt with.
        Throws:
        IOException
        javax.servlet.ServletException
      • beforeSetErrorPageAttribute

        void beforeSetErrorPageAttribute​(Throwable t,
                                         javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response)
                                  throws IOException,
                                         javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • beforeForwardToErrorPage

        void beforeForwardToErrorPage​(Throwable t,
                                      javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response)
                               throws IOException,
                                      javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • afterDispatch

        void afterDispatch​(Throwable t,
                           javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws IOException,
                           javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • responseComplete

        void responseComplete()