|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Originally was grails.utils.GrailsUtils, removed some grails specific stuff. Utility methods removing internal lines from stack traces
Field Summary | |
---|---|
def |
GROOVY_PACKAGES
|
Logger |
STACK_LOG
|
String |
STACK_LOG_NAME
|
Constructor Summary | |
StackTraceUtils()
|
Method Summary | |
---|---|
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 |
static Throwable |
extractRootCause(Throwable t)
Extracts the root cause of the exception, no matter how nested it is |
static boolean |
isApplicationClass(String className)
|
static void |
printSanitizedStackTrace(Throwable t, PrintWriter p)
|
static void |
printSanitizedStackTrace(Throwable t)
|
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 |
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 |
Constructor Detail |
---|
StackTraceUtils()
Method Detail |
---|
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
public static Throwable extractRootCause(Throwable t)
Extracts the root cause of the exception, no matter how nested it is
public static boolean isApplicationClass(String className)
public static void printSanitizedStackTrace(Throwable t, PrintWriter p)
public static void printSanitizedStackTrace(Throwable t)
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
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