IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.ft
Class NestedException

java.lang.Object   extended by java.lang.Throwable       extended by java.lang.Exception           extended by java.lang.RuntimeException               extended by com.rational.test.ft.RationalTestException
                  extended by com.rational.test.ft.NestedException
All Implemented Interfaces:
IRationalThrowable, java.io.Serializable
Direct Known Subclasses:
InvocationTargetException, RationalTestRemoteException, RationalTestScriptException

public abstract class NestedException
extends RationalTestException

Wraps another exception. Typically, a NestedException is thrown upon generation of an Exception that must be treated as a RuntimeException.

Since:
RFT1.0
See Also:
Serialized Form

Constructor Summary
NestedException(java.lang.String message)
           
NestedException(java.lang.String message, java.lang.String nestedExceptionName, java.lang.String nestedExceptionMessage, java.lang.String nestedStackTrace)
           
NestedException(java.lang.String message, java.lang.Throwable e)
           
 
Method Summary
 IRationalThrowable getNestedException()
          Returns the nested exception name.
 java.lang.String getNestedExceptionMessage()
          Returns the nested exception message.
 java.lang.String getNestedExceptionName()
          Returns the nested exception name.
 java.lang.String getNestedExceptionStackTrace()
          Returns the nested exception's stackTrace as a string.
 void setNestedException(java.lang.Throwable e)
          Sets the nested exception.
 java.lang.String toString()
          Returns a string describing the exception.
 
Methods inherited from class com.rational.test.ft.RationalTestException
className, fillinCombinedStackTrace, getClassName, 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

NestedException

public NestedException(java.lang.String message,                        java.lang.String nestedExceptionName,                        java.lang.String nestedExceptionMessage,                        java.lang.String nestedStackTrace)

NestedException

public NestedException(java.lang.String message)

NestedException

public NestedException(java.lang.String message,                        java.lang.Throwable e)
Method Detail

getNestedException

public IRationalThrowable getNestedException()
Returns the nested exception name.

Since:
RFT1.0

getNestedExceptionName

public java.lang.String getNestedExceptionName()
Returns the nested exception name.

Since:
RFT1.0

getNestedExceptionMessage

public java.lang.String getNestedExceptionMessage()
Returns the nested exception message.

Since:
RFT1.0

getNestedExceptionStackTrace

public java.lang.String getNestedExceptionStackTrace()
Returns the nested exception's stackTrace as a string.

Since:
RFT1.0

toString

public java.lang.String toString()
Returns a string describing the exception.

Overrides:
toString in class java.lang.Throwable
Since:
RFT1.0

setNestedException

public void setNestedException(java.lang.Throwable e)
Sets the nested exception.

Since:
RFT1.0