public static interface Thread.UncaughtExceptionHandler
Thread
abruptly terminates due to an uncaught
exception.
When a thread is about to terminate due to an uncaught exception the Java Virtual Machine will
query the thread for its UncaughtExceptionHandler
using
Thread.getUncaughtExceptionHandler()
and will invoke the handler's uncaughtException
method, passing the thread and the exception as arguments.
default uncaught exception handler.
Modifier and Type | Method and Description |
---|---|
void |
uncaughtException(Thread t,
Throwable e)
Method invoked when the given thread terminates due to the given uncaught exception.
|