public class DefaultStackTraceFilterer extends java.lang.Object implements StackTraceFilterer
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
STACK_LOG |
static java.lang.String |
STACK_LOG_NAME |
FULL_STACK_TRACE_MESSAGE, SYS_PROP_DISPLAY_FULL_STACKTRACE| Constructor and Description |
|---|
DefaultStackTraceFilterer() |
DefaultStackTraceFilterer(boolean shouldFilter) |
| 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
|
protected boolean |
isApplicationClass(java.lang.String className)
Whether the given class name is an internal class and should be filtered
|
void |
setCutOffPackage(java.lang.String cutOffPackage)
Sets the package where the stack trace should end
|
void |
setShouldFilter(boolean shouldFilter) |
public static final java.lang.String STACK_LOG_NAME
public static final org.apache.commons.logging.Log STACK_LOG
public DefaultStackTraceFilterer()
public DefaultStackTraceFilterer(boolean shouldFilter)
public void addInternalPackage(java.lang.String name)
StackTraceFiltereraddInternalPackage in interface StackTraceFilterername - The name of the packagepublic void setCutOffPackage(java.lang.String cutOffPackage)
StackTraceFilterersetCutOffPackage in interface StackTraceFilterercutOffPackage - The cut off packagepublic java.lang.Throwable filter(java.lang.Throwable source,
boolean recursive)
StackTraceFiltererRemove all apparently Grails-internal trace entries from the exception instance
This modifies the original instance and returns it, it does not clone
filter in interface StackTraceFilterersource - The source exceptionrecursive - Whether to recursively filter the causepublic java.lang.Throwable filter(java.lang.Throwable source)
StackTraceFiltererRemove all apparently Grails-internal trace entries from the exception instance
This modifies the original instance and returns it, it does not clone
filter in interface StackTraceFilterersource - The source exceptionprotected boolean isApplicationClass(java.lang.String className)
className - The class namepublic void setShouldFilter(boolean shouldFilter)
setShouldFilter in interface StackTraceFilterershouldFilter - Whether to filter stack traces or not