org.springframework.richclient.exceptionhandling
Class AwtExceptionHandlerAdapterHack
java.lang.Object
org.springframework.richclient.exceptionhandling.AwtExceptionHandlerAdapterHack
public class AwtExceptionHandlerAdapterHack
- extends Object
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.
- Since:
- 0.3
- Author:
- Geoffrey De Smet, Keith Donald
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AwtExceptionHandlerAdapterHack
public AwtExceptionHandlerAdapterHack()
- No-arg constructor required so Sun's JDK can construct the instance.
registerExceptionHandler
public 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. When called back, this class simply forwards to the delegate.
- Parameters:
exceptionHandlerDelegate
- the "real" exception handler to delegate to when an uncaught exception occurs.
handle
public void handle(Throwable throwable)
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.