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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultUncaughtExceptionHandler
public DefaultUncaughtExceptionHandler(LogService log)
uncaughtException
public void uncaughtException(Thread thread,
Throwable throwable)
- Specified by:
uncaughtException
in interface Thread.UncaughtExceptionHandler
handle
public void handle(Exception exception)
install
public static void install(LogService log)
Copyright © 2009–2014 SciJava. All rights reserved.