Package ucar.unidata.util
Class WrapperException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ucar.unidata.util.WrapperException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadDataException
Wraps an exception as a RuntimeException
- Version:
- $Revision: 1.9 $
- Author:
- Unidata Development Team
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWrapperException
(String msg, Throwable inner) Wrap a throwable in this ExceptionWrapperException
(Throwable inner) Wrap a throwable in this Exception -
Method Summary
Modifier and TypeMethodDescriptionGet the wrapped exceptionvoid
Print the stack trace for the wrapped exceptiontoString()
Get a String representation of this.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
WrapperException
Wrap a throwable in this Exception- Parameters:
msg
- message to displayinner
- wrapped Throwable
-
WrapperException
Wrap a throwable in this Exception- Parameters:
inner
- wrapped Throwable
-
-
Method Details
-
printStackTrace
public void printStackTrace()Print the stack trace for the wrapped exception- Overrides:
printStackTrace
in classThrowable
-
getException
Get the wrapped exception- Returns:
- wrapped exception
-
toString
Get a String representation of this.
-