public final class WrappedException extends RationalTestException
RationalTestException.
A WrappedException has two main uses:WrappedException is used when an
Exception is generated and must be treated as a RuntimeException.WrappedException is used as a thin wrapper over
a Java Throwable exception to add some extra capabilities.| Constructor and Description |
|---|
WrappedException(java.lang.String message) |
WrappedException(java.lang.String className,
java.lang.String message,
java.lang.String stackTrace) |
WrappedException(java.lang.Throwable e) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassName()
Returns the classname.
|
static void |
throwException(java.lang.Throwable e)
Throws an
Error or a RuntimeException. |
java.lang.String |
toString()
Returns a string describing the exception.
|
className, fillinCombinedStackTrace, getContextDescription, getMessage, getReplacedExceptionMessage, getStackTraceString, printStackTrace, printStackTrace, printStackTrace, setContextDescription, setStackTraceString, stackTraceString, throwItpublic WrappedException(java.lang.String message)
public WrappedException(java.lang.Throwable e)
public WrappedException(java.lang.String className,
java.lang.String message,
java.lang.String stackTrace)
className - the class name of the unsupported methodmessage - a message describing the exceptionstackTrace - a representation of the stack for the current exceptionpublic static void throwException(java.lang.Throwable e)
Error or a RuntimeException.
It wraps an Exception and then throws it.public java.lang.String getClassName()
wrappedExceptionName is returned.getClassName in interface IRationalThrowablegetClassName in class RationalTestExceptionpublic java.lang.String toString()
toString in class java.lang.Throwable