public class DefaultNuxeoExceptionHandler extends Object implements NuxeoExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected NuxeoExceptionHandlerParameters |
parameters |
EXCEPTION_HANDLER_MARKER
Constructor and Description |
---|
DefaultNuxeoExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
protected ErrorHandler |
getHandler(Throwable t) |
protected Object |
getUserMessage(String messageKey,
Locale locale) |
void |
handleException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Throwable t) |
void |
setParameters(NuxeoExceptionHandlerParameters parameters) |
protected void |
startHandlingException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Throwable t)
Puts a marker in request to avoid looping over the exception handling mechanism
|
static Throwable |
unwrapException(Throwable t)
Deprecated.
|
protected NuxeoExceptionHandlerParameters parameters
public DefaultNuxeoExceptionHandler()
public void setParameters(NuxeoExceptionHandlerParameters parameters)
setParameters
in interface NuxeoExceptionHandler
protected void startHandlingException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Throwable t) throws javax.servlet.ServletException
javax.servlet.ServletException
- if request has already been marked as handled. The initial exception is then wrapped.public void handleException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Throwable t) throws IOException, javax.servlet.ServletException
handleException
in interface NuxeoExceptionHandler
IOException
javax.servlet.ServletException
protected ErrorHandler getHandler(Throwable t)
protected Object getUserMessage(String messageKey, Locale locale)
@Deprecated public static Throwable unwrapException(Throwable t)
ExceptionHelper.unwrapException(Throwable)
Copyright © 2016 Nuxeo SA. All rights reserved.