org.equanda.util
Class ExceptionGroup
java.lang.Object
  
java.lang.ThreadGroup
      
org.equanda.util.ExceptionGroup
- All Implemented Interfaces: 
 - Thread.UncaughtExceptionHandler
 
public class ExceptionGroup
- extends ThreadGroup
 
A ThreadGroup which logs all unrecoverable excetions using SaveException in an "errors.txt" log file.
 Usage :
 
 public static void main( final String args[] )
 {
     ThreadGroup exceptionThreadGroup = new ExceptionGroup();
     new Thread( exceptionThreadGroup, "Init thread" )
     {
         public void run()
         {
             // do your thing here
         }
     }.start();
 }
 
- Author:
 
  - Joachim Van der Auwera
 
 
 
| 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 | 
 
 
ExceptionGroup
public ExceptionGroup()
uncaughtException
public void uncaughtException(Thread t,
                              Throwable e)
- Specified by:
 uncaughtException in interface Thread.UncaughtExceptionHandler- Overrides:
 uncaughtException in class ThreadGroup
 
 
Copyright © 2007-2009. All Rights Reserved.