Table of Contents

Class DataSourceException

Namespace
HP.LFT.UnitTesting.DataDriving
Assembly
HP.LFT.UnitTesting.dll

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

public class DataSourceException : Exception, ISerializable, _Exception
Inheritance
DataSourceException
Implements
Inherited Members

Constructors

DataSourceException()

Initializes a new instance of the DataSourceException class.

public DataSourceException()

DataSourceException(SerializationInfo, StreamingContext)

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

protected DataSourceException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

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

context StreamingContext

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.

public DataSourceException(string message)

Parameters

message string

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.

public DataSourceException(string message, Exception exception)

Parameters

message string

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.

public string ClassName { get; set; }

Property Value

string

The name of the test class.

MethodName

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

public string MethodName { get; set; }

Property Value

string

The name of the test method.