class DefaultErrorsPrinter extends DefaultStackTracePrinter
Default implementation of the StackTracePrinter interface.
Type | Name and description |
---|---|
ResourceLocator |
resourceLocator |
Constructor and description |
---|
DefaultErrorsPrinter
() |
DefaultErrorsPrinter
(ResourceLocator resourceLocator) |
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 |
formatCodeSnippetLine(int currentLineNumber, java.lang.Object currentLine) |
java.lang.String |
formatCodeSnippetStart(org.springframework.core.io.Resource resource, int lineNumber) |
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) |
Methods inherited from class | Name |
---|---|
class DefaultStackTracePrinter |
getFileName, makeRelativeIfPossible, prettyPrint, printCausedByMessage, printFailureLocation, printHeader, printLastEntry, printStackLine, shouldSkipNextCause |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Obtains the root cause of the given exception
ex
- The exceptionGroovy Documentation