Show / Hide Table of Contents

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 Source

ValidationException()

Initialises a new ValidationException.

Declaration
public ValidationException()
| Improve this Doc View Source

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.

| Improve this Doc View Source

ValidationException(String)

Initialises a new ValidationException.

Declaration
public ValidationException(string message)
Parameters
Type Name Description
System.String message

The error message.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

ValidationResult

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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX