public class DefaultErrorHandler extends Object implements ErrorHandler
| Constructor and Description |
|---|
DefaultErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
static DefaultErrorHandler |
getInstance()
Returns an instance of the error handler, configured in the
applicationcontext-basejahiaconfig.xml file. |
boolean |
handle(Throwable e,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method handles all types of exceptions that can occur during processing
depending on the exception type.
|
public static DefaultErrorHandler getInstance()
applicationcontext-basejahiaconfig.xml file.DefaultErrorHandler)public boolean handle(Throwable e, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
handle in interface ErrorHandlere - the exception, occurred during processingrequest - current request objectresponse - current response objectIOException - propagates the original exception if it is an instance or
subclass of IOExceptionjavax.servlet.ServletException - propagates the original exception if it is an instance or
subclass of ServletException or wraps the original
exception into ServletException to propagate it furtherCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.