public class GUIExceptionHandler extends Object
| Constructor and Description |
|---|
GUIExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(Throwable t)
Handles an exception.
|
static void |
install(boolean override)
Installs the GUI exception handler.
|
static boolean |
isExitOnException()
Gets the exit on exception flag.
|
static void |
registerSaveable(GUISaveable saveable)
Registers a GUISaveable.
|
static void |
runSaveState()
Invokes all registered saveables.
|
static void |
setExitOnException(boolean flag)
Sets the exit on exception flag.
|
static void |
unregisterSaveable(GUISaveable saveable)
Unregisters a GUISaveable.
|
public static void install(boolean override)
override - is true if override existing handler, false if not set yet.public static void setExitOnException(boolean flag)
flag - true if application should exit on exception (default)public static boolean isExitOnException()
public static void registerSaveable(GUISaveable saveable)
saveable - the object to save on exitpublic static void unregisterSaveable(GUISaveable saveable)
saveable - the object to save on exitpublic static void runSaveState()
public void handle(Throwable t)
t - the Throwable to be handled.Tentackle - a domain driven enterprise framework