Class ExceptionHandler


  • public class ExceptionHandler
    extends java.lang.Object
    Create a suitable HttpServletResponse when face with an exception.
    Author:
    Matt Ward
    • Constructor Summary

      Constructors 
      Constructor Description
      ExceptionHandler​(java.lang.Throwable e, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Create an ExceptionHandler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExceptionHandler

        public ExceptionHandler​(java.lang.Throwable e,
                                javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
        Create an ExceptionHandler.
        Parameters:
        e - Throwable
        request - HttpServletRequest
        response - HttpServletResponse
    • Method Detail

      • handle

        public void handle()
                    throws java.io.IOException
        Throws:
        java.io.IOException