org.scijava.log
Class DefaultUncaughtExceptionHandler

java.lang.Object
  extended by 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
DefaultUncaughtExceptionHandler(LogService log)
           
 
Method Summary
 void handle(Exception exception)
           
static void install(LogService log)
           
 void uncaughtException(Thread thread, Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUncaughtExceptionHandler

public DefaultUncaughtExceptionHandler(LogService log)
Method Detail

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.