Class DescriptionException
Exceptions raised when errors are encountered in the description of a test object.
Inherited Members
Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public class DescriptionException : Exception, ISerializable, _Exception
Constructors
DescriptionException(Description)
Initializes a new instance of the DescriptionException class with the test object description.
Declaration
public DescriptionException(Description testObjectDescription)
Parameters
| Type | Name | Description |
|---|---|---|
| Description | testObjectDescription | The Description containing the error. |
DescriptionException(Description, string)
Initializes a new instance of the DescriptionException class with the test object description and an error message string.
Declaration
public DescriptionException(Description testObjectDescription, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Description | testObjectDescription | The Description containing the error. |
| string | message | The error message that explains the exception. |
DescriptionException(Description, string, Exception)
Initializes a new instance of the DescriptionException class with the test object description, an error message string, and the actual exception.
Declaration
public DescriptionException(Description testObjectDescription, string message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| Description | testObjectDescription | The Description containing the error. |
| string | message | The error message that explains the exception. |
| Exception | exception | The exception that is the cause of the current exception. |
DescriptionException(SerializationInfo, StreamingContext)
Initializes a new instance of the DescriptionException class with serialized data.
Declaration
protected DescriptionException(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
TestObjectDescription
The test object description in the exception.
Declaration
public readonly Description TestObjectDescription
Field Value
| Type | Description |
|---|---|
| Description |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | |
| StreamingContext | context |