edu.sc.seis.fissuresUtil.exceptionHandler
Class GlobalExceptionHandler

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.exceptionHandler.GlobalExceptionHandler

public class GlobalExceptionHandler
extends java.lang.Object


Constructor Summary
GlobalExceptionHandler()
           
 
Method Summary
static void add(ExceptionInterceptor interceptor)
           
static void add(ExceptionInterceptor interceptor, int position)
           
static void add(ExceptionReporter reporter)
           
static void add(Extractor extractor)
           
static void add(PostProcess process)
           
static void add(java.lang.String sectionName, java.io.File file)
           
static void append(java.lang.String sectionName, java.lang.String contents)
           
static int getNumHandled()
           
static void handle(java.lang.String message)
           
static void handle(java.lang.String message, java.lang.Throwable thrown)
           
static void handle(java.lang.String message, java.lang.Throwable thrown, java.util.List additonalSections)
           
static void handle(java.lang.Throwable thrown)
           
static void registerWithAWTThread()
          This supposedly sets a global exception handler in the awt thread only, so that uncaught exceptions can be processed/saved/viewed.
static void remove(ExceptionInterceptor interceptor)
           
static void remove(ExceptionReporter reporter)
           
static void remove(PostProcess process)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalExceptionHandler

public GlobalExceptionHandler()
Method Detail

handle

public static void handle(java.lang.Throwable thrown)

getNumHandled

public static int getNumHandled()

handle

public static void handle(java.lang.String message)

handle

public static void handle(java.lang.String message,
                          java.lang.Throwable thrown)

handle

public static void handle(java.lang.String message,
                          java.lang.Throwable thrown,
                          java.util.List additonalSections)

add

public static void add(ExceptionInterceptor interceptor)

add

public static void add(ExceptionInterceptor interceptor,
                       int position)

remove

public static void remove(ExceptionInterceptor interceptor)

add

public static void add(Extractor extractor)

add

public static void add(ExceptionReporter reporter)

remove

public static void remove(ExceptionReporter reporter)

add

public static void add(PostProcess process)

remove

public static void remove(PostProcess process)

add

public static void add(java.lang.String sectionName,
                       java.io.File file)

append

public static void append(java.lang.String sectionName,
                          java.lang.String contents)

registerWithAWTThread

public static void registerWithAWTThread()
This supposedly sets a global exception handler in the awt thread only, so that uncaught exceptions can be processed/saved/viewed. Will not necessarily work for future releases (> 1.4). Perhaps it will, perhaps not. NOTE: It does not work for exceptions in other threads. Java1.5 is supposed to have a mechanism to do this.