class DefaultErrorsPrinter extends org.grails.exceptions.reporting.DefaultStackTracePrinter implements org.grails.exceptions.reporting.CodeSnippetPrinter
Default implementation of the StackTracePrinter interface.
Fields inherited from class | Fields |
---|---|
class org.grails.exceptions.reporting.DefaultStackTracePrinter |
__$stMC |
Type | Name and description |
---|---|
org.grails.io.support.ResourceLocator |
resourceLocator |
Constructor and description |
---|
DefaultErrorsPrinter() |
DefaultErrorsPrinter(ResourceLocator resourceLocator) |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
formatCodeSnippetEnd(org.springframework.core.io.Resource resource, int lineNumber) |
|
protected java.lang.String |
formatCodeSnippetErrorLine(int currentLineNumber, java.lang.Object currentLine) |
|
protected java.lang.String |
formatCodeSnippetErrorLine(int currentLineNumber, java.lang.Object currentLine, java.util.Map attrs) |
|
protected java.lang.String |
formatCodeSnippetLine(int currentLineNumber, java.lang.Object currentLine) |
|
protected java.lang.String |
formatCodeSnippetLine(int currentLineNumber, java.lang.Object currentLine, java.util.Map attrs) |
|
java.lang.String |
formatCodeSnippetStart(org.springframework.core.io.Resource resource, int lineNumber) |
|
java.lang.String |
formatCodeSnippetStart(org.springframework.core.io.Resource resource, int lineNumber, java.util.Map attrs) |
|
protected java.lang.String |
getFileName(java.lang.StackTraceElement te) |
|
protected org.springframework.core.io.Resource |
getFileNameInfo(java.lang.Throwable cause, org.springframework.core.io.Resource res) |
|
protected int |
getLineNumberInfo(java.lang.Throwable cause, int defaultInfo) |
|
protected java.lang.Throwable |
getRootCause(java.lang.Throwable ex) Obtains the root cause of the given exception |
|
java.lang.String |
prettyPrintCodeSnippet(java.lang.Throwable exception) |
|
java.lang.String |
prettyPrintCodeSnippet(java.lang.Throwable exception, java.util.Map attrs) |
Methods inherited from class | Name |
---|---|
class org.grails.exceptions.reporting.DefaultStackTracePrinter |
org.grails.exceptions.reporting.DefaultStackTracePrinter#prettyPrint(java.lang.Throwable, java.util.Map), org.grails.exceptions.reporting.DefaultStackTracePrinter#prettyPrint(java.lang.Throwable), org.grails.exceptions.reporting.DefaultStackTracePrinter#makeRelativeIfPossible(java.lang.String), org.grails.exceptions.reporting.DefaultStackTracePrinter#getMetaClass(), org.grails.exceptions.reporting.DefaultStackTracePrinter#setMetaClass(groovy.lang.MetaClass), org.grails.exceptions.reporting.DefaultStackTracePrinter#wait(long, int), org.grails.exceptions.reporting.DefaultStackTracePrinter#wait(), org.grails.exceptions.reporting.DefaultStackTracePrinter#wait(long), org.grails.exceptions.reporting.DefaultStackTracePrinter#equals(java.lang.Object), org.grails.exceptions.reporting.DefaultStackTracePrinter#toString(), org.grails.exceptions.reporting.DefaultStackTracePrinter#hashCode(), org.grails.exceptions.reporting.DefaultStackTracePrinter#getClass(), org.grails.exceptions.reporting.DefaultStackTracePrinter#notify(), org.grails.exceptions.reporting.DefaultStackTracePrinter#notifyAll(), org.grails.exceptions.reporting.DefaultStackTracePrinter#getProperty(java.lang.String), org.grails.exceptions.reporting.DefaultStackTracePrinter#setProperty(java.lang.String, java.lang.Object), org.grails.exceptions.reporting.DefaultStackTracePrinter#invokeMethod(java.lang.String, java.lang.Object) |
Obtains the root cause of the given exception
ex
- The exceptionGroovy Documentation