Class ValidationException
An exception which may be raised by an IValidator or an IValidator<TValidated>.
Inheritance
System.Object
System.Exception
ValidationException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: CSF.Validation
Assembly: CSF.Validation.Abstractions.dll
Syntax
[Serializable]
public class ValidationException : Exception, ISerializable
Constructors
| Improve this Doc View SourceValidationException()
Initialises a new ValidationException.
Declaration
public ValidationException()
ValidationException(SerializationInfo, StreamingContext)
Initialises a new ValidationException.
Declaration
protected ValidationException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Serialisation info. |
System.Runtime.Serialization.StreamingContext | context | Streaming context. |
ValidationException(String)
Initialises a new ValidationException.
Declaration
public ValidationException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message. |
ValidationException(String, ValidationResult)
Initialises a new ValidationException.
Declaration
public ValidationException(string message, ValidationResult validationResult)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message. |
ValidationResult | validationResult | A validation result associated with the current exception. |
ValidationException(String, Exception)
Initialises a new ValidationException.
Declaration
public ValidationException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message. |
System.Exception | inner | The inner exception. |
Properties
| Improve this Doc View SourceValidationResult
Gets the validation result, where one is associated with the current exception.
Declaration
public ValidationResult ValidationResult { get; }
Property Value
Type | Description |
---|---|
ValidationResult |
Implements
System.Runtime.Serialization.ISerializable