|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.groovy.grails.exceptions.DefaultStackTraceFilterer
public class DefaultStackTraceFilterer
Default implementation of StackTraceFilterer.
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
STACK_LOG
|
static java.lang.String |
STACK_LOG_NAME
|
| Fields inherited from interface org.codehaus.groovy.grails.exceptions.StackTraceFilterer |
|---|
FULL_STACK_TRACE_MESSAGE, SYS_PROP_DISPLAY_FULL_STACKTRACE |
| Constructor Summary | |
|---|---|
DefaultStackTraceFilterer()
|
|
DefaultStackTraceFilterer(boolean shouldFilter)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String STACK_LOG_NAME
public static final org.apache.commons.logging.Log STACK_LOG
| Constructor Detail |
|---|
public DefaultStackTraceFilterer()
public DefaultStackTraceFilterer(boolean shouldFilter)
| Method Detail |
|---|
public void addInternalPackage(java.lang.String name)
StackTraceFilterer
addInternalPackage in interface StackTraceFilterername - The name of the packagepublic void setCutOffPackage(java.lang.String cutOffPackage)
StackTraceFilterer
setCutOffPackage in interface StackTraceFilterercutOffPackage - The cut off package
public 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 cause
public 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 exception
protected boolean isApplicationClass(java.lang.String className)
className - The class name
public void setShouldFilter(boolean shouldFilter)
setShouldFilter in interface StackTraceFilterershouldFilter - Whether to filter stack traces or not
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||