Class DataSourceException

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

public class DataSourceException extends Exception
The exceptions thrown when errors occur in Data Source Processing.
See Also:
  • Constructor Details

    • DataSourceException

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

      public DataSourceException(String message, 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(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(String className, String methodName, String message, 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(String className, String methodName, 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 Details

    • getClassName

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

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