IBM Rational Functional Tester
Version 6.1
IBM Rational Functional Tester API Reference

Project Version 2.0

com.rational.test.ft
Interface IRationalThrowable

All Known Implementing Classes:
RationalTestError, RationalTestException

public interface IRationalThrowable

Implemented by RationalTestError and RationalTestException.

Since:
RFT1.0

Method Summary
 IRationalThrowable fillinCombinedStackTrace()
          Combines the current stack in the current thread with the stacktrace from this exception.
 java.lang.String getClassName()
          Returns the classname of the Throwable exception.
 java.lang.String getContextDescription()
          Gets a description of the context of the exception within a script.
 java.lang.String getStackTraceString()
          Gets a String representation of the stack for the current exception.
 void setContextDescription(java.lang.String s)
          Sets the exception context description.
 void setStackTraceString(java.lang.String s)
          Sets the String representation of the stack for the current exception.
 void throwIt()
          Throws this throwable exception.
 

Method Detail

getStackTraceString

public java.lang.String getStackTraceString()
Gets a String representation of the stack for the current exception.

Since:
RFT1.0

setStackTraceString

public void setStackTraceString(java.lang.String s)
Sets the String representation of the stack for the current exception. If this value is not explicitly set, the stacktrace from the underlying Throwable is returned from getStackTraceString.

Since:
RFT1.0

getClassName

public java.lang.String getClassName()
Returns the classname of the Throwable exception. Note that WrappedException overrides this and returns the name of the wrapped exception.

Since:
RFT1.0

fillinCombinedStackTrace

public IRationalThrowable fillinCombinedStackTrace()
Combines the current stack in the current thread with the stacktrace from this exception. The combined stack is persisted as a String value.

Since:
RFT1.0

getContextDescription

public java.lang.String getContextDescription()
Gets a description of the context of the exception within a script. (This may be null.)

Since:
RFT1.0

setContextDescription

public void setContextDescription(java.lang.String s)
Sets the exception context description.

Since:
RFT1.0

throwIt

public void throwIt()
Throws this throwable exception.

Since:
RFT1.0