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