public final class AWTExceptionHandlerInstaller extends Object
Installs 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 (EDT).
This is a Sun-specific feature (or "bug"). See bug 4714232.
Modifier and Type | Method and Description |
---|---|
static void |
installAWTExceptionHandler(Class<?> exceptionHandlerType)
Installs the given exception handler type.
|
public static void installAWTExceptionHandler(@Nonnull Class<?> exceptionHandlerType)
exceptionHandlerType
- the type of exception handler to be installed in the current JVM.IllegalArgumentException
- if the given type does not have a default constructor.Copyright © 2014–2019 AssertJ. All rights reserved.