Package VASSAL.launch
Class ExceptionHandler
java.lang.Object
VASSAL.launch.ExceptionHandler
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler
public class ExceptionHandler extends Object implements Thread.UncaughtExceptionHandler
Handles uncaught exceptions. None of the methods in this class are
intended to be called in our code, but must be public in order to be
accessible to
Thread
and EventDispatchThread
.- Since:
- 3.1.0
- Author:
- Joel Uckelman
-
Constructor Summary
Constructors Constructor Description ExceptionHandler()
-
Method Summary
Modifier and Type Method Description void
handle(Throwable thrown)
Handles uncaught exceptions.void
uncaughtException(Thread thread, Throwable thrown)
This method is part of theThread.UncaughtExceptionHandler
interface.
-
Constructor Details
-
ExceptionHandler
public ExceptionHandler()
-
-
Method Details
-
handle
Handles uncaught exceptions.- Parameters:
thrown
- theThrowable
which was not caught.
-
uncaughtException
This method is part of theThread.UncaughtExceptionHandler
interface. Do not call this method directly.- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
- Parameters:
thread
- the thread where the exception occurredthrown
- the exception
-