com.rational.test.ft

Class RationalTestError

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Error
        • com.rational.test.ft.RationalTestError
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RationalTestError

        public RationalTestError()
      • RationalTestError

        public RationalTestError(java.lang.String msg)
      • RationalTestError

        public RationalTestError(java.lang.String msg,
                                 java.lang.String stackTrace)
    • Method Detail

      • getClassName

        public java.lang.String getClassName()
        Returns the class name.
        Specified by:
        getClassName in interface IRationalThrowable
        Since:
        RFT1.0
      • getStackTraceString

        public java.lang.String getStackTraceString()
        Gets a String representation of the stack at the point when the current exception was constructed.
        Specified by:
        getStackTraceString in interface IRationalThrowable
        Since:
        RFT1.0 8
      • setStackTraceString

        public void setStackTraceString(java.lang.String s)
        Sets a String representation of the stack at the point when the current exception was constructed.
        Specified by:
        setStackTraceString in interface IRationalThrowable
      • printStackTrace

        public void printStackTrace()
        Prints a String representation of the stack to System.err.
        Overrides:
        printStackTrace in class java.lang.Throwable
        Since:
        RFT1.0
      • printStackTrace

        public void printStackTrace(java.io.PrintStream s)
        Prints the stack trace stream to a PrintStream object.
        Overrides:
        printStackTrace in class java.lang.Throwable
        Parameters:
        s - the stack trace stream
        Since:
        RFT1.0
      • printStackTrace

        public void printStackTrace(java.io.PrintWriter s)
        Prints the stack trace stream to a PrintWriter object.
        Overrides:
        printStackTrace in class java.lang.Throwable
        Parameters:
        s - the stack trace stream
        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.)
        Specified by:
        getContextDescription in interface IRationalThrowable
        Since:
        RFT1.0
      • setContextDescription

        public void setContextDescription(java.lang.String s)
        Sets the exception context description.
        Specified by:
        setContextDescription in interface IRationalThrowable
        Since:
        RFT1.0
      • throwIt

        public void throwIt()
        Throws this throwable exception.
        Specified by:
        throwIt in interface IRationalThrowable
        Since:
        RFT1.0
      • fillinCombinedStackTrace

        public IRationalThrowable fillinCombinedStackTrace()
        Combines the current stack (in the current thread) with the stack trace from this exception. The combined stack is persisted as a String.
        Specified by:
        fillinCombinedStackTrace in interface IRationalThrowable
        Since:
        RFT1.0