public interface StackTraceFilterer
Improves the output of stack traces produced by exceptions in a Grails application.
Modifiers | Name | Description |
---|---|---|
java.lang.String |
FULL_STACK_TRACE_MESSAGE |
|
java.lang.String |
SYS_PROP_DISPLAY_FULL_STACKTRACE |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
addInternalPackage(java.lang.String name) Adds a package name that should be filtered |
|
public java.lang.Throwable |
filter(java.lang.Throwable source, boolean recursive) |
|
public java.lang.Throwable |
filter(java.lang.Throwable source) |
|
public void |
setCutOffPackage(java.lang.String cutOffPackage) Sets the package where the stack trace should end |
|
public void |
setShouldFilter(boolean shouldFilter)
|
Adds a package name that should be filtered
name
- The name of the package
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
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 exceptionSets the package where the stack trace should end
cutOffPackage
- The cut off package
shouldFilter
- Whether to filter stack traces or not