Package org.fest.swing.util
Class AWTExceptionHandlerInstaller
java.lang.Object
org.fest.swing.util.AWTExceptionHandlerInstaller
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
installAWTExceptionHandler
(Class<?> exceptionHandlerType) Installs the given exception handler type.(package private) static void
installAWTExceptionHandler
(Class<?> exceptionHandlerType, SystemPropertyWriter writer)
-
Field Details
-
WRITER
-
-
Constructor Details
-
AWTExceptionHandlerInstaller
private AWTExceptionHandlerInstaller()
-
-
Method Details
-
installAWTExceptionHandler
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
-