public class RationalTestError extends java.lang.Error implements IRationalThrowable
Errors. Such Errors are not common. When they occur, they indicate a failure
of the script. You should not catch these Errors.
Instead, allow them to terminate the script execution.| Constructor and Description |
|---|
RationalTestError() |
RationalTestError(java.lang.String msg) |
RationalTestError(java.lang.String msg,
java.lang.String stackTrace) |
| Modifier and Type | Method and Description |
|---|---|
IRationalThrowable |
fillinCombinedStackTrace()
Combines the current stack (in the current thread) with the
stack trace 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 |
getStackTraceString()
Gets a
String representation of the stack at the
point when the current exception was constructed. |
void |
printStackTrace()
Prints a
String representation of the stack
to System.err. |
void |
printStackTrace(java.io.PrintStream s)
Prints the stack trace stream to a
PrintStream object. |
void |
printStackTrace(java.io.PrintWriter s)
Prints the stack trace stream to a
PrintWriter object. |
void |
setContextDescription(java.lang.String s)
Sets the exception context description.
|
void |
setStackTraceString(java.lang.String s)
Sets a
String representation of the stack at the
point when the current exception was constructed. |
void |
throwIt()
Throws this throwable exception.
|
public RationalTestError()
public RationalTestError(java.lang.String msg)
public RationalTestError(java.lang.String msg,
java.lang.String stackTrace)
public java.lang.String getClassName()
getClassName in interface IRationalThrowablepublic java.lang.String getStackTraceString()
String representation of the stack at the
point when the current exception was constructed.getStackTraceString in interface IRationalThrowablepublic void setStackTraceString(java.lang.String s)
String representation of the stack at the
point when the current exception was constructed.setStackTraceString in interface IRationalThrowablepublic void printStackTrace()
String representation of the stack
to System.err.printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream s)
PrintStream object.printStackTrace in class java.lang.Throwables - the stack trace streampublic void printStackTrace(java.io.PrintWriter s)
PrintWriter object.printStackTrace in class java.lang.Throwables - the stack trace streampublic 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 IRationalThrowable