Package org.scijava.log
Class DefaultUncaughtExceptionHandler
- java.lang.Object
-
- org.scijava.log.DefaultUncaughtExceptionHandler
-
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler
public class DefaultUncaughtExceptionHandler extends Object implements Thread.UncaughtExceptionHandler
A handler for otherwise uncaught exceptions.Installing this handler will automatically log the exceptions that would otherwise be missed; e.g., when things go awry on the AWT Event Dispatch Thread.
- Author:
- Johannes Schindelin
-
-
Constructor Summary
Constructors Constructor Description DefaultUncaughtExceptionHandler(LogService log)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(Exception exception)static voidinstall(LogService log)voiduncaughtException(Thread thread, Throwable throwable)
-
-
-
Constructor Detail
-
DefaultUncaughtExceptionHandler
public DefaultUncaughtExceptionHandler(LogService log)
-
-
Method Detail
-
uncaughtException
public void uncaughtException(Thread thread, Throwable throwable)
- Specified by:
uncaughtExceptionin interfaceThread.UncaughtExceptionHandler
-
handle
public void handle(Exception exception)
-
install
public static void install(LogService log)
-
-