Class GeneralReplayException
Represents general errors that occur when running a testing project.
Inheritance
Inherited Members
Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public class GeneralReplayException : GeneralLeanFtException, ISerializable, _Exception
Constructors
GeneralReplayException()
Initializes a new instance of the GeneralReplayException class.
Declaration
public GeneralReplayException()
GeneralReplayException(ITestObject)
Initializes a new instance of the GeneralReplayException class with the test object on which the run error occurred.
Declaration
public GeneralReplayException(ITestObject testObject)
Parameters
| Type | Name | Description |
|---|---|---|
| ITestObject | testObject | The test object on which the run error has occurred. |
GeneralReplayException(ITestObject, int, string)
Initializes a new instance of the GeneralReplayException class with the test object on which the run error occurred, a specified error message and an error code associated with this exception.
Declaration
public GeneralReplayException(ITestObject testObject, int errorCode, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ITestObject | testObject | The test object on which the run error occurred. |
| int | errorCode | The error code associated with this exception. |
| string | message | The error message that explains the reason for the exception. |
GeneralReplayException(ITestObject, string)
Initializes a new instance of the GeneralReplayException class with the test object on which the run error occurred and a specified error message.
Declaration
public GeneralReplayException(ITestObject testObject, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| ITestObject | testObject | The test object on which the run error occurred. |
| string | message | The error message that explains the reason for the exception. |
GeneralReplayException(ITestObject, string, Exception)
Initializes a new instance of the GeneralReplayException class with the test object on which the run error occurred, a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public GeneralReplayException(ITestObject testObject, string message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| ITestObject | testObject | The test object on which the run error occurred. |
| string | message | The error message that explains the reason for the exception. |
| Exception | exception | The exception that is the cause of the current exception. |
GeneralReplayException(SerializationInfo, StreamingContext)
Initializes a new instance of the GeneralReplayException class with serialized data.
Declaration
protected GeneralReplayException(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. |
Fields
TestObject
The test object that caused the run failure.
Declaration
public readonly ITestObject TestObject
Field Value
| Type | Description |
|---|---|
| ITestObject |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the SerializationInfo with information about the exception
Declaration
public override void GetObjectData(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. |