edu.sc.seis.fissuresUtil.exceptionHandler
Class DefaultExtractor

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.exceptionHandler.DefaultExtractor
All Implemented Interfaces:
Extractor

public class DefaultExtractor
extends java.lang.Object
implements Extractor


Constructor Summary
DefaultExtractor()
           
 
Method Summary
 boolean canExtract(java.lang.Throwable throwable)
          Should return true if this extractor is capable of understanding this type of Throwable.
 java.lang.String extract(java.lang.Throwable throwable)
          Extracts a string version of the throwable.
 java.lang.Throwable getSubThrowable(java.lang.Throwable throwable)
          gets a Wrapped exception, if it exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExtractor

public DefaultExtractor()
Method Detail

canExtract

public boolean canExtract(java.lang.Throwable throwable)
Description copied from interface: Extractor
Should return true if this extractor is capable of understanding this type of Throwable. Typically, this will be done via code like if (throwable instanceof MyException) { return true; }

Specified by:
canExtract in interface Extractor

extract

public java.lang.String extract(java.lang.Throwable throwable)
Description copied from interface: Extractor
Extracts a string version of the throwable.

Specified by:
extract in interface Extractor

getSubThrowable

public java.lang.Throwable getSubThrowable(java.lang.Throwable throwable)
Description copied from interface: Extractor
gets a Wrapped exception, if it exists.

Specified by:
getSubThrowable in interface Extractor