public class GriffonExceptionHandler extends java.lang.Object implements ExceptionHandler
GRIFFON_EXCEPTION_OUTPUT, GRIFFON_FULL_STACKTRACE| Constructor and Description |
|---|
GriffonExceptionHandler() |
GriffonExceptionHandler(GriffonApplication application) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addClassTest(CallableWithArgs<java.lang.Boolean> test) |
static void |
configure(java.util.Map<java.lang.String,java.lang.Object> config) |
static java.lang.Throwable |
deepSanitize(java.lang.Throwable t)
Sanitize the exception and ALL nested causes
This will MODIFY the stacktrace of the exception instance and all its causes irreversibly
|
protected GriffonApplication |
getApplication() |
void |
handle(java.lang.Throwable throwable) |
static void |
handleThrowable(java.lang.Throwable t) |
static boolean |
isFullStacktraceEnabled() |
static boolean |
isOutputEnabled() |
static void |
registerExceptionHandler() |
static java.lang.StackTraceElement[] |
sanitize(java.lang.StackTraceElement[] stackTrace) |
static java.lang.Throwable |
sanitize(java.lang.Throwable throwable) |
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
public GriffonExceptionHandler()
public GriffonExceptionHandler(GriffonApplication application)
public static void addClassTest(CallableWithArgs<java.lang.Boolean> test)
@Nullable protected GriffonApplication getApplication()
public void uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
uncaughtException in interface ExceptionHandleruncaughtException in interface java.lang.Thread.UncaughtExceptionHandlerpublic void handle(java.lang.Throwable throwable)
handle in interface ExceptionHandlerpublic static java.lang.Throwable sanitize(java.lang.Throwable throwable)
public static java.lang.StackTraceElement[] sanitize(java.lang.StackTraceElement[] stackTrace)
public static boolean isOutputEnabled()
public static void configure(java.util.Map<java.lang.String,java.lang.Object> config)
public static void registerExceptionHandler()
public static void handleThrowable(java.lang.Throwable t)
public static java.lang.Throwable deepSanitize(java.lang.Throwable t)
t - a throwablepublic static boolean isFullStacktraceEnabled()