|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface StackTraceFilterer
Improves the output of stack traces produced by exceptions in a Grails application.
Field Summary | |
---|---|
java.lang.String |
FULL_STACK_TRACE_MESSAGE
|
java.lang.String |
SYS_PROP_DISPLAY_FULL_STACKTRACE
|
Method Summary | |
---|---|
void
|
addInternalPackage(java.lang.String name)
Adds a package name that should be filtered |
java.lang.Throwable
|
filter(java.lang.Throwable source, boolean recursive)
|
java.lang.Throwable
|
filter(java.lang.Throwable source)
|
void
|
setCutOffPackage(java.lang.String cutOffPackage)
Sets the package where the stack trace should end |
void
|
setShouldFilter(boolean shouldFilter)
@param shouldFilter Whether to filter stack traces or not |
Field Detail |
---|
public java.lang.String FULL_STACK_TRACE_MESSAGE
public java.lang.String SYS_PROP_DISPLAY_FULL_STACKTRACE
Method Detail |
---|
public void addInternalPackage(java.lang.String name)
name
- The name of the package
public java.lang.Throwable filter(java.lang.Throwable source, boolean recursive)
Remove all apparently Grails-internal trace entries from the exception instance
This modifies the original instance and returns it, it does not clone
source
- The source exceptionrecursive
- Whether to recursively filter the cause
public java.lang.Throwable filter(java.lang.Throwable source)
Remove all apparently Grails-internal trace entries from the exception instance
This modifies the original instance and returns it, it does not clone
source
- The source exception
public void setCutOffPackage(java.lang.String cutOffPackage)
cutOffPackage
- The cut off package
public void setShouldFilter(boolean shouldFilter)
shouldFilter
- Whether to filter stack traces or not
Groovy Documentation