Class NotFoundExceptionHandler

java.lang.Object
ch.tocco.nice2.dms.impl.publish.exception.handler.NotFoundExceptionHandler
All Implemented Interfaces:
ExceptionHandler

@Component public class NotFoundExceptionHandler extends Object implements ExceptionHandler
This exception handler sends a 404 error code.
  • Constructor Details

    • NotFoundExceptionHandler

      public NotFoundExceptionHandler()
  • Method Details

    • handle

      public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Exception exception) throws Exception
      Sends a 404 error code.
      Specified by:
      handle in interface ExceptionHandler
      Throws:
      Exception