Class DataSourceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.hp.lft.unittesting.datadriving.DataSourceException
- All Implemented Interfaces:
Serializable
The exceptions thrown when errors occur in Data Source Processing.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of DataSourceException with a default message.DataSourceException
(String message) Initializes a new instance of DataSourceException with the specified error message.DataSourceException
(String className, String methodName, String message) Initializes a new instance of DataSourceException with the specified error message.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.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. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the test class to be run.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
-
Constructor Details
-
DataSourceException
public DataSourceException()Initializes a new instance of DataSourceException with a default message. -
DataSourceException
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
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
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
Gets the name of the test class to be run.- Returns:
- : the name of the test class to be run.
-
getMethodName
Gets the name of the test method to be run.- Returns:
- : the name of the test method to be run.
-