Class TestErrorConditionException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    AssertException

    public class TestErrorConditionException
    extends java.lang.Exception
    Exception which AbstractTest extensions can throw from the rumImpl method to report an error condition.
    Version:
    $Id: TestErrorConditionException.java 1733416 2016-03-03 07:07:13Z gadams $
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String errorCode
      Error code.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addStackTraceDescription​(TestReport report)
      Convenience method: adds a description entry for the stack trace.
      TestReport getTestReport​(Test test)
      Requests a report which describes the exception.
      • Methods inherited from class java.lang.Throwable

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

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

      • errorCode

        protected java.lang.String errorCode
        Error code. May be null.
    • Constructor Detail

      • TestErrorConditionException

        protected TestErrorConditionException()
        Default constructor
      • TestErrorConditionException

        public TestErrorConditionException​(java.lang.String errorCode)
        Parameters:
        errorCode - describes the error condition
    • Method Detail

      • getTestReport

        public TestReport getTestReport​(Test test)
        Requests a report which describes the exception.
      • addStackTraceDescription

        public void addStackTraceDescription​(TestReport report)
        Convenience method: adds a description entry for the stack trace.