gov.sns.tools
Class ExceptionWrapper

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--gov.sns.tools.ExceptionWrapper
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
XmlDataAdaptor.CreationException, XmlDataAdaptor.ParseException, XmlDataAdaptor.ResourceNotFoundException, XmlDataAdaptor.WriteException, XmlDataSource.XmlDocumentCreateException

public class ExceptionWrapper
extends java.lang.RuntimeException

Convenience class to wrap an exception with a runtime exception so exception handling isn't so irritating. This method was implemented before Java supported exception causes. It has been updated to use the new support and this class remains for backward compatibility.

See Also:
Serialized Form

Constructor Summary
ExceptionWrapper(java.lang.Exception cause)
          Creates new ExceptionWrapper
 
Method Summary
 java.lang.Exception rootException()
          Get the root cause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionWrapper

public ExceptionWrapper(java.lang.Exception cause)
Creates new ExceptionWrapper

Method Detail

rootException

public java.lang.Exception rootException()
Get the root cause

Returns:
the root cause