@ToStringBuilder.ToObjectInfo @ApplicationScoped public class ExceptionHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AppConfig |
appConfig |
protected com.appslandia.common.logging.AppLogger |
appLogger |
protected com.appslandia.common.json.JsonProcessor |
jsonProcessor |
| Constructor and Description |
|---|
ExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getErrorMessage(javax.servlet.http.HttpServletRequest request,
ActionContext actionContext,
int status) |
void |
handleException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionContext actionContext,
Throwable exception) |
protected boolean |
willWriteModelError(javax.servlet.http.HttpServletRequest request,
ActionContext actionContext,
Throwable exception) |
protected void |
writeException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionContext actionContext,
Throwable exception) |
protected void |
writeModelError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
int status,
String message,
Throwable exception) |
@Inject protected com.appslandia.common.logging.AppLogger appLogger
@Inject protected AppConfig appConfig
@Inject protected com.appslandia.common.json.JsonProcessor jsonProcessor
public void handleException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionContext actionContext,
Throwable exception)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected void writeException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionContext actionContext,
Throwable exception)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected boolean willWriteModelError(javax.servlet.http.HttpServletRequest request,
ActionContext actionContext,
Throwable exception)
protected void writeModelError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
int status,
String message,
Throwable exception)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected String getErrorMessage(javax.servlet.http.HttpServletRequest request, ActionContext actionContext, int status)
Copyright © 2018. All rights reserved.