public interface StackTraceFilterer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FULL_STACK_TRACE_MESSAGE |
static java.lang.String |
SYS_PROP_DISPLAY_FULL_STACKTRACE |
Modifier and Type | Method and Description |
---|---|
void |
addInternalPackage(java.lang.String name)
Adds a package name that should be filtered
|
java.lang.Throwable |
filter(java.lang.Throwable source)
Remove all apparently Grails-internal trace entries from the exception instance
|
java.lang.Throwable |
filter(java.lang.Throwable source,
boolean recursive)
Remove all apparently Grails-internal trace entries from the exception instance
|
void |
setCutOffPackage(java.lang.String cutOffPackage)
Sets the package where the stack trace should end
|
void |
setShouldFilter(boolean shouldFilter) |
static final java.lang.String FULL_STACK_TRACE_MESSAGE
static final java.lang.String SYS_PROP_DISPLAY_FULL_STACKTRACE
void addInternalPackage(java.lang.String name)
name
- The name of the packagevoid setCutOffPackage(java.lang.String cutOffPackage)
cutOffPackage
- The cut off packagejava.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 causejava.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 exceptionvoid setShouldFilter(boolean shouldFilter)
shouldFilter
- Whether to filter stack traces or not