public class EventDispatchExceptionHandler extends Object
It now uses the Thread.UncaughtExceptionHandler class which introduces
a minor issue in that when this is called the current event queue object
has already been replaced by a new instance. (See the source code for
EventDispatchThread.run()
for more information). To work around
this a shared synchronization object has been added, although a read/write lock
would also have been a possible design and should be considered if a time out
ends up being required.
Modifier and Type | Field and Description |
---|---|
protected static Object |
synchronizedBlock
We need to make sure that we can't query the state of the hander while we are dealing with an exception
|
Constructor and Description |
---|
EventDispatchExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
exceptionCaught(Throwable thrown)
Define this to handle the exception as needed.
|
void |
handle(Throwable thrown)
Handle exceptions thrown on the event dispatch thread.
|
void |
install() |
static boolean |
isInstalled() |
protected static Object synchronizedBlock
public void install()
protected void exceptionCaught(Throwable thrown)
public void handle(Throwable thrown)
public static boolean isInstalled()
Abbot is hosted on