Table of Contents

Class DataSourceException

The exception that is thrown when an error occurs while performing data-driven operations.

Inheritance
DataSourceException
Namespace: HP.LFT.UnitTesting.DataDriving
Assembly: HP.LFT.UnitTesting.dll
Syntax
public class DataSourceException : Exception, ISerializable, _Exception

Constructors

DataSourceException()

Initializes a new instance of the DataSourceException class.

Declaration
public DataSourceException()

DataSourceException(SerializationInfo, StreamingContext)

Initializes a new instance of the DataSourceException class with serialized data.

Declaration
protected DataSourceException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info

The SerializationInfo that holds the serialized object data about the exception being thrown.

StreamingContext context

The StreamingContext that contains contextual information about the source or destination.

DataSourceException(string)

Initializes a new instance of the DataSourceException class with a specified error message.

Declaration
public DataSourceException(string message)
Parameters
Type Name Description
string message

The error message that explains the reason for the exception.

DataSourceException(string, Exception)

Initializes a new instance of the DataSourceException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Declaration
public DataSourceException(string message, Exception exception)
Parameters
Type Name Description
string message

The error message that explains the reason for the exception.

Exception exception

The exception that is the cause of the current exception.

Properties

ClassName

Gets or sets the name of the test class to be run.

Declaration
public string ClassName { get; set; }
Property Value
Type Description
string

The name of the test class.

MethodName

Gets or sets the name of the test method to be run.

Declaration
public string MethodName { get; set; }
Property Value
Type Description
string

The name of the test method.

Implements

ISerializable
_Exception