org.crosswire.common.swing
Class CatchingThreadGroup

java.lang.Object
  extended by java.lang.ThreadGroup
      extended by org.crosswire.common.swing.CatchingThreadGroup
All Implemented Interfaces:
Thread.UncaughtExceptionHandler

public class CatchingThreadGroup
extends ThreadGroup

Another way to get ahold of missing exceptions.

Distribution Licence:
JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
The copyright to this program is held by it's authors.

Version:
$Id: CatchingThreadGroup.java,v 1.2 2004/08/16 22:07:35 joe Exp $
Author:
Joe Walker [joe at eireneh dot com]
See Also:
Licence

Constructor Summary
CatchingThreadGroup(String name)
          Simple ctor that names the threadgroup
CatchingThreadGroup(ThreadGroup group, String name)
          Simple ctor that names the threadgroup, and provides a parent group
 
Method Summary
 void uncaughtException(Thread t, Throwable ex)
           
 
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

CatchingThreadGroup

public CatchingThreadGroup(String name)
Simple ctor that names the threadgroup

Parameters:
name - The name for this group

CatchingThreadGroup

public CatchingThreadGroup(ThreadGroup group,
                           String name)
Simple ctor that names the threadgroup, and provides a parent group

Parameters:
group - The parent ThreadGroup
name - The name for this group
Method Detail

uncaughtException

public void uncaughtException(Thread t,
                              Throwable ex)
Specified by:
uncaughtException in interface Thread.UncaughtExceptionHandler
Overrides:
uncaughtException in class ThreadGroup

Copyright ? 2003-2004