Class AWTExceptionHandlerInstaller

java.lang.Object
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.

  • Field Details

  • Constructor Details

    • AWTExceptionHandlerInstaller

      private AWTExceptionHandlerInstaller()
  • Method Details

    • 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.
    • installAWTExceptionHandler

      static void installAWTExceptionHandler(Class<?> exceptionHandlerType, SystemPropertyWriter writer)