|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.schwarzrot.app.errors.support.AwtExceptionHandlerAdapterHack
public class AwtExceptionHandlerAdapterHack
Uncaught exception handler designed to work with JDK 1.4 and 1.5's primitive API for registering exception handlers for the event thread. It's impossible to set an exception handler for the event thread in jdk 1.4 (and 1.5). See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4714232 So this effectively only works in Sun's JDK.
Constructor Summary | |
---|---|
AwtExceptionHandlerAdapterHack()
No-arg constructor required so Sun's JDK can construct the instance. |
Method Summary | |
---|---|
void |
handle(Throwable throwable)
|
static void |
registerExceptionHandler(RegisterableExceptionHandler exceptionHandlerDelegate)
Sets the SUN_AWT_EXCEPTION_HANDLER_KEY system property to
register this class as the event thread's exception handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AwtExceptionHandlerAdapterHack()
Method Detail |
---|
public void handle(Throwable throwable)
public static void registerExceptionHandler(RegisterableExceptionHandler exceptionHandlerDelegate)
SUN_AWT_EXCEPTION_HANDLER_KEY
system property to
register this class as the event thread's exception handler. When called
back, this class simply forwards to the delegate.
exceptionHandlerDelegate
- the "real" exception handler to delegate to when an uncaught
exception occurs.
|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |