public class GrailsWrappedRuntimeException extends GrailsException
Wraps a Grails RuntimeException and attempts to extract more relevent diagnostic messages from the stack trace.
Modifiers | Name | Description |
---|---|---|
private static java.util.regex.Pattern |
ANY_GSP_DETAILS |
|
private static org.apache.commons.logging.Log |
LOG |
|
private static java.util.regex.Pattern |
PARSE_DETAILS_STEP1 |
|
private static java.util.regex.Pattern |
PARSE_DETAILS_STEP2 |
|
private static java.util.regex.Pattern |
PARSE_GSP_DETAILS_STEP1 |
|
private static java.lang.String |
UNKNOWN |
|
static java.lang.String |
URL_PREFIX |
|
private java.lang.Throwable |
cause |
|
private java.lang.String |
className |
|
private java.lang.String[] |
codeSnippet |
|
private java.lang.String |
fileName |
|
private static java.lang.Class<? extends GrailsApplicationAttributes> |
grailsApplicationAttributesClass |
|
private static java.lang.reflect.Constructor<? extends GrailsApplicationAttributes> |
grailsApplicationAttributesConstructor |
|
private java.lang.String |
gspFile |
|
private int |
lineNumber |
|
private org.springframework.core.io.support.PathMatchingResourcePatternResolver |
resolver |
|
private static long |
serialVersionUID |
|
private java.lang.String |
stackTrace |
|
private java.lang.String[] |
stackTraceLines |
Fields inherited from class | Fields |
---|---|
class GrailsException |
serialVersionUID |
Constructor and description |
---|
GrailsWrappedRuntimeException
(javax.servlet.ServletContext servletContext, java.lang.Throwable t)
|
Type Params | Return Type | Name and description |
---|---|---|
|
private void |
checkIfSourceCodeAware(java.lang.Throwable t) |
|
public java.lang.String |
getClassName()
|
|
public java.lang.String[] |
getCodeSnippet()
|
|
public int |
getLineNumber()
|
|
public java.lang.String |
getMessage() |
|
public java.lang.String[] |
getStackTraceLines()
|
|
public java.lang.String |
getStackTraceText()
|
servletContext
- The ServletContext instancet
- The exception that was thrown