public final class ExceptionHandler extends Object implements Thread.UncaughtExceptionHandler
By default, a Swing app will handle uncaught exceptions simply by
printing a stack trace to System.err
. However, the end user will
not usually see that, and if they do, they will not likely understand it.
This class addresses that problem, by showing the end user a
simple error message in a modal dialog. (The dialog's owner is the
currently active frame.)
Constructor and Description |
---|
ExceptionHandler() |
public ExceptionHandler()
public void uncaughtException(Thread aThread, Throwable aThrowable)
Displays a simple model dialog to the user, showing that an error has
occured. The text of the error includes Throwable.toString()
.
The stack trace is logged at a SEVERE level.
uncaughtException
in interface Thread.UncaughtExceptionHandler
Copyright Hirondelle Systems - Generated 2013Sep20.11.16