jAER project on SourceForge

net.sf.jaer.util
Class LoggingThreadGroup

java.lang.Object
  extended by java.lang.ThreadGroup
      extended by net.sf.jaer.util.LoggingThreadGroup
All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler

public class LoggingThreadGroup
extends java.lang.ThreadGroup

A thread group that implements uncaughtException to log uncaught exceptions


Constructor Summary
LoggingThreadGroup(java.lang.String name)
           
 
Method Summary
 void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
          Thread and Throwable passed in here are passed to a Logger named "UncaughtExceptionLogger" which has the handler LoggingWindowHandler.
 
Methods inherited from class java.lang.ThreadGroup
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoggingThreadGroup

public LoggingThreadGroup(java.lang.String name)
Method Detail

uncaughtException

public void uncaughtException(java.lang.Thread t,
                              java.lang.Throwable e)
Thread and Throwable passed in here are passed to a Logger named "UncaughtExceptionLogger" which has the handler LoggingWindowHandler.

Specified by:
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler
Overrides:
uncaughtException in class java.lang.ThreadGroup

jAER project on SourceForge