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
resultValidationResultThe 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
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
ValidationException(string)
Initializes a new instance of the ValidationException class with a specified error message.
protected ValidationException(string message)
Parameters
messagestringThe error message.
Properties
Errors
The dictionary containing error messages corresponding to parameter names.
public IDictionary<string, string[]> Errors { get; }
Property Value
- IDictionary<string, string[]>