Package org.craftercms.engine.http.impl
Class DefaultExceptionHandler
- java.lang.Object
-
- org.craftercms.engine.http.impl.DefaultExceptionHandler
-
- All Implemented Interfaces:
ExceptionHandler
public class DefaultExceptionHandler extends Object implements ExceptionHandler
DefaultExceptionHandler
, which logs all exceptions and sends a HTTP 500 status.- Author:
- Alfonso Vásquez
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description DefaultExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Exception ex)
Attempts to handle the exception.
-
-
-
Field Detail
-
EXCEPTION_ATTRIBUTE
public static final String EXCEPTION_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
handle
public boolean handle(javax.servlet.http.HttpServletRequest request, javax.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 interfaceExceptionHandler
- Throws:
IOException
-
-