com.hp.lft.unittesting.datadriving

Class DataSourceException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • com.hp.lft.unittesting.datadriving.DataSourceException
  • All Implemented Interfaces:
    java.io.Serializable


    public class DataSourceException
    extends java.lang.Exception
    The exceptions thrown when errors occur in Data Source Processing.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor and Description
      DataSourceException()
      Initializes a new instance of DataSourceException with a default message.
      DataSourceException(java.lang.String message)
      Initializes a new instance of DataSourceException with the specified error message.
      DataSourceException(java.lang.String className, java.lang.String methodName, java.lang.String message)
      Initializes a new instance of DataSourceException with the specified error message.
      DataSourceException(java.lang.String className, java.lang.String methodName, java.lang.String message, java.lang.Throwable exception)
      Initializes a new instance of DataSourceException with the specified error message and a reference to the inner exception that is the cause of this exception.
      DataSourceException(java.lang.String message, java.lang.Throwable exception)
      Initializes a new instance of DataSourceException with the specified error message and a reference to the inner exception that is the cause of this exception.
    • Method Summary

      Modifier and TypeMethod and Description
      java.lang.StringgetClassName()
      Gets the name of the test class to be run.
      java.lang.StringgetMethodName()
      Gets the name of the test method to be run.
      • 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
    • Constructor Detail

      • DataSourceException

        public DataSourceException()
        Initializes a new instance of DataSourceException with a default message.
      • DataSourceException

        public DataSourceException(java.lang.String message,
                                   java.lang.Throwable exception)
        Initializes a new instance of DataSourceException with the specified error message and a reference to the inner exception that is the cause of this exception.
        Parameters:
        message: - The error message with the reason for this exception.
        exception: - The inner exception that caused this exception.
      • DataSourceException

        public DataSourceException(java.lang.String message)
        Initializes a new instance of DataSourceException with the specified error message.
        Parameters:
        message: - The error message with the reason for this exception.
      • DataSourceException

        public DataSourceException(java.lang.String className,
                                   java.lang.String methodName,
                                   java.lang.String message,
                                   java.lang.Throwable exception)
        Initializes a new instance of DataSourceException with the specified error message and a reference to the inner exception that is the cause of this exception.
        Parameters:
        className: - The name of the test class to be run.
        methodName: - The name of the test method to be run.
        message: - The error message with the reason for this exception.
        exception: - The inner exception that caused this exception.
      • DataSourceException

        public DataSourceException(java.lang.String className,
                                   java.lang.String methodName,
                                   java.lang.String message)
        Initializes a new instance of DataSourceException with the specified error message.
        Parameters:
        className: - The name of the test class to be run.
        methodName: - The name of the test method to be run.
        message: - The error message with the reason for this exception.
    • Method Detail

      • getClassName

        public java.lang.String getClassName()
        Gets the name of the test class to be run.
        Returns:
        : the name of the test class to be run.
      • getMethodName

        public java.lang.String getMethodName()
        Gets the name of the test method to be run.
        Returns:
        : the name of the test method to be run.