Class DefaultExceptionHandler

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

@Component public class DefaultExceptionHandler extends Object implements ExceptionHandler
This exception handler logs the exception sends an internal server error.
  • Constructor Details

    • DefaultExceptionHandler

      public DefaultExceptionHandler(org.slf4j.Logger log)
  • Method Details

    • handle

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