| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| private static final Logger | |
| public static final String | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | addClassTest(Closure<V>
the testing groovy.lang.Closure test)Adds a groovy.lang.Closure to test whether the stack trace element should be added or not. |
| public static Throwable | Returns: The root cause exception instances, with stack trace modified to filter out groovy runtime classesa throwable t)Sanitize the exception and ALL nested causes This will MODIFY the stacktrace of the exception instance and all its causes irreversibly |
| public static Throwable | Returns: The deepest cause of the exception that can be founda Throwable t)Extracts the root cause of the exception, no matter how nested it is |
| public static boolean | |
| public static void | |
| public static void | |
| public static Throwable | |
| public static Throwable | Returns: The root cause exception instance, with its stace trace modified to filter out groovy runtime classesa throwable t)Get the root cause of an exception and sanitize it for display to the user This will MODIFY the stacktrace of the root cause exception object and return it |
| GROOVY_PACKAGES | back to summary |
|---|---|
| private static final String[] GROOVY_PACKAGES | |
| STACK_LOG | back to summary |
|---|---|
| private static final Logger STACK_LOG | |
| STACK_LOG_NAME | back to summary |
|---|---|
| public static final String STACK_LOG_NAME | |
| tests | back to summary |
|---|---|
| private static final List<Closure<V>> tests | |
| StackTraceUtils | back to summary |
|---|---|
| public StackTraceUtils() | |
| addClassTest | back to summary |
|---|---|
| public static void addClassTest(Closure<V> test) Adds a groovy.lang.Closure to test whether the stack trace element should be added or not. The groovy.lang.Closure will be given the class name as parameter. the return value decides if the element will be added or not.
| |
| deepSanitize | back to summary |
|---|---|
| public static Throwable deepSanitize(Throwable t) Sanitize the exception and ALL nested causes This will MODIFY the stacktrace of the exception instance and all its causes irreversibly | |
| extractRootCause | back to summary |
|---|---|
| public static Throwable extractRootCause(Throwable t) Extracts the root cause of the exception, no matter how nested it is | |
| isApplicationClass | back to summary |
|---|---|
| public static boolean isApplicationClass(String className) | |
| printSanitizedStackTrace | back to summary |
|---|---|
| public static void printSanitizedStackTrace(Throwable t, PrintWriter p) | |
| printSanitizedStackTrace | back to summary |
|---|---|
| public static void printSanitizedStackTrace(Throwable t) | |
| sanitize | back to summary |
|---|---|
| public static Throwable sanitize(Throwable t) Remove all apparently groovy-internal trace entries from the exception instance This modifies the original instance and returns it, it does not clone | |
| sanitizeRootCause | back to summary |
|---|---|
| public static Throwable sanitizeRootCause(Throwable t) Get the root cause of an exception and sanitize it for display to the user This will MODIFY the stacktrace of the root cause exception object and return it | |