Table of Contents

Class ValidationException

Namespace
Admonish
Assembly
Admonish.dll

The exception that is thrown when incorrect data are provided to the application.

[Serializable]
public class ValidationException : Exception, ISerializable
Inheritance
ValidationException
Implements
Inherited Members

Constructors

ValidationException(ValidationResult)

Initializes a new instance of the ValidationException class with a specified validation result.

public ValidationException(ValidationResult result)

Parameters

result ValidationResult

The object containing error messages.

ValidationException(SerializationInfo, StreamingContext)

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

protected ValidationException(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.

Exceptions

ArgumentNullException

info is null.

SerializationException

The class name is null or HResult is zero (0).

ValidationException(string)

Initializes a new instance of the ValidationException class with a specified error message.

protected ValidationException(string message)

Parameters

message string

The error message.

Properties

Errors

The dictionary containing error messages corresponding to parameter names.

public IDictionary<string, string[]> Errors { get; }

Property Value

IDictionary<string, string[]>