edu.emory.mathcs.backport.java.util.concurrent.helpers
Interface ThreadHelpers.UncaughtExceptionHandler

Enclosing interface:
ThreadHelpers

public static interface ThreadHelpers.UncaughtExceptionHandler

Abstraction of the exception handler which receives notifications of exceptions occurred possibly in various parts of the system. Exception handlers present attractive approach to exception handling in multi-threaded systems, as they can handle exceptions that occurred in different threads.

This class is analogous to Thread.UncaughtExceptionHandler in J2SE 5.0. Obviously you cannot use it the same way, e.g. you cannot assign the handler to the thread so that it is invoked when thread terminates. However, it can be emulated.


Method Summary
 void uncaughtException(java.lang.Thread thread, java.lang.Throwable error)
          Notification of the uncaught exception that occurred within specified thread.
 

Method Detail

uncaughtException

public void uncaughtException(java.lang.Thread thread,
                              java.lang.Throwable error)
Notification of the uncaught exception that occurred within specified thread.

Parameters:
thread - the thread where the exception occurred
error - the exception