public class GrailsExceptionResolver extends SimpleMappingExceptionResolver implements GrailsApplicationAware, ServletContextAware
Wraps any runtime exceptions with a GrailsWrappedException instance.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
EXCEPTION_ATTRIBUTE |
|
protected static java.lang.String |
LINE_SEPARATOR |
|
protected static org.apache.commons.logging.Log |
LOG |
|
protected GrailsApplication |
grailsApplication |
|
protected ServletContext |
servletContext |
|
protected StackTraceFilterer |
stackFilterer |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
createStackFilterer() |
|
protected java.lang.String |
determineUri(HttpServletRequest request) |
|
public static int |
extractLineNumber(org.codehaus.groovy.control.CompilationFailedException e) |
|
protected void |
filterStackTrace(java.lang.Exception e) |
|
protected java.lang.Exception |
findWrappedException(java.lang.Exception e) |
|
protected void |
forwardRequest(UrlMappingInfo info, HttpServletRequest request, HttpServletResponse response, ModelAndView mv, java.lang.String uri) |
|
public static java.lang.RuntimeException |
getFirstRuntimeException(java.lang.Throwable e) |
|
public java.lang.String |
getRequestLogMessage(java.lang.Throwable e, HttpServletRequest request) |
|
public java.lang.String |
getRequestLogMessage(HttpServletRequest request) |
|
protected java.lang.String |
getRequestLogMessage(java.lang.String exceptionName, HttpServletRequest request, java.lang.String message) |
|
public static java.lang.Throwable |
getRootCause(java.lang.Throwable ex) Obtains the root cause of the given exception |
|
protected void |
logStackTrace(java.lang.Exception e, HttpServletRequest request) |
|
protected UrlMappingsHolder |
lookupUrlMappings() |
|
protected UrlMappingInfo |
matchStatusCode(java.lang.Exception ex, UrlMappingsHolder urlMappings) |
|
public ModelAndView |
resolveException(HttpServletRequest request, HttpServletResponse response, java.lang.Object handler, java.lang.Exception ex) |
|
protected void |
resolveView(HttpServletRequest request, UrlMappingInfo info, ModelAndView mv) |
|
protected ModelAndView |
resolveViewOrForward(java.lang.Exception ex, UrlMappingsHolder urlMappings, HttpServletRequest request, HttpServletResponse response, ModelAndView mv) |
|
public void |
setGrailsApplication(GrailsApplication grailsApplication) |
|
public void |
setServletContext(ServletContext servletContext) |
|
protected void |
setStatus(HttpServletRequest request, HttpServletResponse response, ModelAndView mv, java.lang.Exception e) |
Obtains the root cause of the given exception
ex
- The exception