org.jscience.util
Class Debug.FileExceptionHandler

java.lang.Object
  extended by org.jscience.util.Debug.FileExceptionHandler
All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler
Enclosing class:
Debug

public static class Debug.FileExceptionHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler

can be used to conveniently write all exceptions to a file.

See Also:
Thread.setDefaultUncaughtExceptionHandler(Thread.UncaughtExceptionHandler), Thread.setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler)

Constructor Summary
Debug.FileExceptionHandler(java.io.File file)
          Creates a new FileExceptionHandler object.
Debug.FileExceptionHandler(java.io.File file, boolean showDialog)
          Creates a new FileExceptionHandler object.
 
Method Summary
 void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug.FileExceptionHandler

public Debug.FileExceptionHandler(java.io.File file)
Creates a new FileExceptionHandler object.

Parameters:
file - DOCUMENT ME!

Debug.FileExceptionHandler

public Debug.FileExceptionHandler(java.io.File file,
                                  boolean showDialog)
Creates a new FileExceptionHandler object.

Parameters:
file - DOCUMENT ME!
showDialog - DOCUMENT ME!
Method Detail

uncaughtException

public void uncaughtException(java.lang.Thread t,
                              java.lang.Throwable e)
DOCUMENT ME!

Specified by:
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler
Parameters:
t - DOCUMENT ME!
e - DOCUMENT ME!