Package org.craftercms.engine.http.impl
Class DefaultExceptionHandler
java.lang.Object
org.craftercms.engine.http.impl.DefaultExceptionHandler
- All Implemented Interfaces:
ExceptionHandler
Default
ExceptionHandler, which logs all exceptions and sends a HTTP 500 status.- Author:
- Alfonso Vásquez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EXCEPTION_ATTRIBUTE
- See Also:
-
-
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:ExceptionHandlerAttempts to handle the exception. If it can be handled, returns true, else false is returned.- Specified by:
handlein interfaceExceptionHandler- Throws:
IOException
-