public class GriffonExceptionHandler extends Object implements Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static String |
GRIFFON_EXCEPTION_OUTPUT
"griffon.exception.output"
|
static String |
GRIFFON_FULL_STACKTRACE
"griffon.full.stacktrace"
|
Constructor and Description |
---|
GriffonExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
addClassTest(CallableWithArgs<Boolean> test) |
static void |
configure(Map<String,Object> config) |
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
|
void |
handle(Throwable throwable) |
static void |
handleThrowable(Throwable t) |
static boolean |
isOutputEnabled() |
static void |
registerExceptionHandler() |
static StackTraceElement[] |
sanitize(StackTraceElement[] stackTrace) |
static Throwable |
sanitize(Throwable throwable) |
void |
uncaughtException(Thread t,
Throwable e) |
public static final String GRIFFON_FULL_STACKTRACE
public static final String GRIFFON_EXCEPTION_OUTPUT
public static void addClassTest(CallableWithArgs<Boolean> test)
public void uncaughtException(Thread t, Throwable e)
uncaughtException
in interface Thread.UncaughtExceptionHandler
public void handle(Throwable throwable)
public static StackTraceElement[] sanitize(StackTraceElement[] stackTrace)
public static boolean isOutputEnabled()
public static void registerExceptionHandler()
public static void handleThrowable(Throwable t)
public static Throwable deepSanitize(Throwable t)
t
- a throwable