Class DescriptionException
Exceptions raised when errors are encountered in the description of a test object.
public class DescriptionException : Exception, ISerializable, _Exception
- Inheritance
-
DescriptionException
- Implements
- Derived
- Inherited Members
Constructors
DescriptionException(Description)
Initializes a new instance of the DescriptionException class with the test object description.
public DescriptionException(Description testObjectDescription)
Parameters
testObjectDescriptionDescriptionThe 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.
public DescriptionException(Description testObjectDescription, string message)
Parameters
testObjectDescriptionDescriptionThe Description containing the error.
messagestringThe 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.
public DescriptionException(Description testObjectDescription, string message, Exception exception)
Parameters
testObjectDescriptionDescriptionThe Description containing the error.
messagestringThe error message that explains the exception.
exceptionExceptionThe exception that is the cause of the current exception.
DescriptionException(SerializationInfo, StreamingContext)
Initializes a new instance of the DescriptionException class with serialized data.
protected DescriptionException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
Fields
TestObjectDescription
The test object description in the exception.
public readonly Description TestObjectDescription
Field Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfocontextStreamingContext