|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fife.rtext.AWTExceptionHandler
public class AWTExceptionHandler
Catches uncaught exceptions thrown in the EDT. This is "magic" that works
in at least 1.4 - 1.6 in Sun JVMs. We cannot simply use
Thread.UncaughtExceptionHandler
, since it didn't exist in
1.4 (and it doesn't work for exceptions thrown while modal dialogs are
visible on the EDT anyway).
To use this class, call
AWTExceptionHandler.register()
.
Constructor Summary | |
---|---|
AWTExceptionHandler()
|
Method Summary | |
---|---|
void |
handle(java.lang.Throwable t)
Callback for whenever an uncaught Throwable is thrown on the EDT. |
static void |
register()
Call this method to register this exception handler with the EDT. |
static void |
shutdown()
Cleans up this exception handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AWTExceptionHandler()
Method Detail |
---|
public void handle(java.lang.Throwable t)
t
- the uncaught Throwable.public static void register()
public static void shutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |