UncaughtExceptionHandler

Interface for handlers invoked when a {@code Thread} abruptly terminates due to an uncaught exception. <p>When a thread is about to terminate due to an uncaught exception the Java Virtual Machine will query the thread for its {@code UncaughtExceptionHandler} using {@link #getUncaughtExceptionHandler} and will invoke the handler's {@code uncaughtException} method, passing the thread and the exception as arguments. If a thread has not had its {@code UncaughtExceptionHandler} explicitly set, then its {@code ThreadGroupEx} object acts as its {@code UncaughtExceptionHandler}. If the {@code ThreadGroupEx} object has no special requirements for dealing with the exception, it can forward the invocation to the {@linkplain #getDefaultUncaughtExceptionHandler default uncaught exception handler}.

@see #setDefaultUncaughtExceptionHandler @see #setUncaughtExceptionHandler @see ThreadGroupEx#uncaughtException

interface UncaughtExceptionHandler {}

Members

Functions

uncaughtException
void uncaughtException(Thread t, Throwable e)

Method invoked when the given thread terminates due to the given uncaught exception. <p>Any exception thrown by this method will be ignored by the Java Virtual Machine. @param t the thread @param e the exception

Meta