foxtrot.pumps
Class ConditionalEventPump.ThrowableHandler
java.lang.Object
foxtrot.pumps.ConditionalEventPump.ThrowableHandler
- Enclosing class:
- ConditionalEventPump
public static class ConditionalEventPump.ThrowableHandler
- extends Object
Handler for RuntimeExceptions or Errors thrown during dispatching of AWT events.
The name of this class is used as a value of the property sun.awt.exception.handler,
and the AWT event dispatch mechanism calls it when an unexpected runtime exception or error
is thrown during event dispatching. If the user specifies a different exception handler,
this one will not be used, and the user's one is used instead.
Use of this class is necessary in JDK 1.4, since RuntimeExceptions and Errors are propagated to
be handled by the ThreadGroup (but not for modal dialogs).
|
Method Summary |
void |
handle(Throwable t)
The callback method invoked by the AWT event dispatch mechanism when an unexpected
exception or error is thrown during event dispatching. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConditionalEventPump.ThrowableHandler
public ConditionalEventPump.ThrowableHandler()
handle
public void handle(Throwable t)
- The callback method invoked by the AWT event dispatch mechanism when an unexpected
exception or error is thrown during event dispatching.
It just logs the exception.
Copyright © 2011 KnowledgePlaza. All Rights Reserved.