Class DefaultExceptionHandler

java.lang.Object
org.craftercms.engine.http.impl.DefaultExceptionHandler
All Implemented Interfaces:
ExceptionHandler

public class DefaultExceptionHandler extends Object implements ExceptionHandler
Default ExceptionHandler, which logs all exceptions and sends a HTTP 500 status.
Author:
Alfonso Vásquez
  • Field Details

  • Constructor Details

    • DefaultExceptionHandler

      public DefaultExceptionHandler()
  • Method Details

    • handle

      public boolean handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Exception ex) throws IOException
      Description copied from interface: ExceptionHandler
      Attempts to handle the exception. If it can be handled, returns true, else false is returned.
      Specified by:
      handle in interface ExceptionHandler
      Throws:
      IOException