org.fest.swing.util
Class AWTExceptionHandlerInstaller

java.lang.Object
  extended by org.fest.swing.util.AWTExceptionHandlerInstaller

public final class AWTExceptionHandlerInstaller
extends Object

Understands installation of AWT exception handlers.

An exception handler is passed to the JVM using the system property "sun.awt.exception.handler" to override the default exception handling behavior of the event dispatch thread.

This is a Sun-specific feature (or "bug".) See bug 4714232.

Author:
Alex Ruiz

Method Summary
static void installAWTExceptionHandler(Class<?> exceptionHandlerType)
          Installs the given exception handler type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

installAWTExceptionHandler

public static void installAWTExceptionHandler(Class<?> exceptionHandlerType)
Installs the given exception handler type.

Parameters:
exceptionHandlerType - the type of exception handler to be installed in the current JVM.
Throws:
IllegalArgumentException - if the given type does not have a default constructor.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.