[]
Initializes a new instance of the ValidationException class with a specified error message.
public ValidationException(string message)
Type | Name | Description |
---|---|---|
string | message | The message that describes the error. |
Initializes a new instance of the ValidationException class with serialized data.
protected ValidationException(SerializationInfo info, StreamingContext context)
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. |