|
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
public class RationalTestException
The base class for all exceptions used by the product. Any runtime exception that is exposed to a test script must extend this class.
| Constructor Summary | |
|---|---|
RationalTestException()
|
|
RationalTestException(java.lang.String msg)
|
|
RationalTestException(java.lang.String msg, java.lang.String stackTrace)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
className(java.lang.Throwable e)
Gets the class name of the exception. |
IRationalThrowable |
fillinCombinedStackTrace()
Combines the current stack in the current thread with the stacktrace from this exception. |
java.lang.String |
getClassName()
Returns the class name. |
java.lang.String |
getContextDescription()
Gets a description of the context of the exception within a script. |
java.lang.String |
getMessage()
|
static java.lang.String |
getReplacedExceptionMessage(java.lang.String key)
|
java.lang.String |
getStackTraceString()
Gets a String representation of the stack for the current exception. |
void |
printStackTrace()
Prints a String representation of the stack trace for the current exception to System.err. |
void |
printStackTrace(java.io.PrintStream s)
Prints the stack trace for the current exception to a PrintStream object. |
void |
printStackTrace(java.io.PrintWriter s)
Prints the stack trace for the current exception to a PrinteWriter object. |
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. |
static java.lang.String |
stackTraceString(java.lang.Throwable e)
Gets a String representation of the stackTrace from a throwable. |
void |
throwIt()
Throws this throwable. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RationalTestException()
public RationalTestException(java.lang.String msg)
public RationalTestException(java.lang.String msg, java.lang.String stackTrace)
| Method Detail |
|---|
public java.lang.String getClassName()
getClassName in interface IRationalThrowablepublic static java.lang.String className(java.lang.Throwable e)
IRationalThrowable, this invokes the getClassName method.
public static java.lang.String stackTraceString(java.lang.Throwable e)
String representation of the stackTrace from a throwable.
Note that this does not include the first line, which is a description of the exception.
public java.lang.String getStackTraceString()
String representation of the stack for the current exception.
getStackTraceString in interface IRationalThrowablepublic void setStackTraceString(java.lang.String s)
String representation of the stack for the current exception.
setStackTraceString in interface IRationalThrowablepublic void printStackTrace()
String representation of the stack trace for the current exception to System.err.
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream s)
PrintStream object.
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter s)
PrinteWriter object.
printStackTrace in class java.lang.Throwablepublic java.lang.String getContextDescription()
getContextDescription in interface IRationalThrowablepublic void setContextDescription(java.lang.String s)
setContextDescription in interface IRationalThrowablepublic void throwIt()
throwIt in interface IRationalThrowablepublic IRationalThrowable fillinCombinedStackTrace()
String.
fillinCombinedStackTrace in interface IRationalThrowablepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic static java.lang.String getReplacedExceptionMessage(java.lang.String key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||