|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester API Reference Project Version 2.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.rational.test.ft.RationalTestException
com.rational.test.ft.WrappedException
public final class WrappedException
Wraps another exception or error as a 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 Summary | |
|---|---|
WrappedException(java.lang.String message)
|
|
WrappedException(java.lang.String className, java.lang.String message, java.lang.String stackTrace)
|
|
WrappedException(java.lang.Throwable e)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.rational.test.ft.RationalTestException |
|---|
className, fillinCombinedStackTrace, getContextDescription, getMessage, getReplacedExceptionMessage, getStackTraceString, printStackTrace, printStackTrace, printStackTrace, setContextDescription, setStackTraceString, stackTraceString, throwIt |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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 exception| Method Detail |
|---|
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||