|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.springframework.web.servlet.handler.SimpleMappingExceptionResolver
org.codehaus.groovy.grails.web.errors.GrailsExceptionResolver
public class GrailsExceptionResolver extends SimpleMappingExceptionResolver
Wraps any runtime exceptions with a GrailsWrappedException instance.
| Method Summary | |
|---|---|
static int
|
extractLineNumber(CompilationFailedException e)
|
static java.lang.RuntimeException
|
getFirstRuntimeException(java.lang.Throwable e)
|
static java.lang.String
|
getRequestLogMessage(HttpServletRequest request)
|
static java.lang.Throwable
|
getRootCause(java.lang.Throwable ex)
Obtains the root cause of the given exception |
ModelAndView
|
resolveException(HttpServletRequest request, HttpServletResponse response, java.lang.Object handler, java.lang.Exception ex)
|
void
|
setServletContext(ServletContext servletContext)
|
| Method Detail |
|---|
public static int extractLineNumber(CompilationFailedException e)
public static java.lang.RuntimeException getFirstRuntimeException(java.lang.Throwable e)
public static java.lang.String getRequestLogMessage(HttpServletRequest request)
public static java.lang.Throwable getRootCause(java.lang.Throwable ex)
ex - The exception
@Override public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, java.lang.Object handler, java.lang.Exception ex)
public void setServletContext(ServletContext servletContext)
Groovy Documentation