Class TestException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TestException
    extends java.lang.Exception
    Classes in the test package and subpackages should throw TestException to reflect internal failures in their operation.
    Version:
    $Id: TestException.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
      protected java.lang.Object[] errorParams
      Parameters for the error message
      protected java.lang.Exception sourceError
      Exception, if any, that caused the error
    • Constructor Summary

      Constructors 
      Constructor Description
      TestException​(java.lang.String errorCode, java.lang.Object[] errorParams, java.lang.Exception e)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getErrorCode()  
      java.lang.Object[] getErrorParams()  
      java.lang.String getMessage()  
      java.lang.Exception getSourceError()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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
      • errorParams

        protected java.lang.Object[] errorParams
        Parameters for the error message
      • sourceError

        protected java.lang.Exception sourceError
        Exception, if any, that caused the error
    • Constructor Detail

      • TestException

        public TestException​(java.lang.String errorCode,
                             java.lang.Object[] errorParams,
                             java.lang.Exception e)
    • Method Detail

      • getErrorCode

        public java.lang.String getErrorCode()
      • getErrorParams

        public java.lang.Object[] getErrorParams()
      • getSourceError

        public java.lang.Exception getSourceError()
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable