ucar.unidata.util
Class WrapperException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ucar.unidata.util.WrapperException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadDataException

public class WrapperException
extends RuntimeException

Wraps an exception as a RuntimeException

Version:
$Revision: 1.9 $
Author:
Unidata Development Team
See Also:
Serialized Form

Constructor Summary
WrapperException(String msg, Throwable inner)
          Wrap a throwable in this Exception
WrapperException(Throwable inner)
          Wrap a throwable in this Exception
 
Method Summary
 Throwable getException()
          Get the wrapped exception
 void printStackTrace()
          Print the stack trace for the wrapped exception
 String toString()
          Get a String representation of this.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrapperException

public WrapperException(String msg,
                        Throwable inner)
Wrap a throwable in this Exception

Parameters:
msg - message to display
inner - wrapped Throwable

WrapperException

public WrapperException(Throwable inner)
Wrap a throwable in this Exception

Parameters:
inner - wrapped Throwable
Method Detail

printStackTrace

public void printStackTrace()
Print the stack trace for the wrapped exception

Overrides:
printStackTrace in class Throwable

getException

public Throwable getException()
Get the wrapped exception

Returns:
wrapped exception

toString

public String toString()
Get a String representation of this.

Overrides:
toString in class Throwable
Returns:
a String representation of this.