Skip to content

ValidationResultException ​

Namespace: MJCZone.DapperMatic.AspNetCore.Validation

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

Exception thrown when validation fails.

Inheritance ​

Base Class: Exception

public

Contents ​

Constructors (4) | Methods (7) | Properties (9)

Constructors ​

ValidationResultException ​

Initializes a new instance of the ValidationResultException class.

csharp
ValidationResultException()

ValidationResultException ​

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

csharp
ValidationResultException(string message)

Parameters ​

  • message (string) - The error message that explains the reason for the exception.

ValidationResultException ​

Initializes a new instance of the ValidationResultException class with a specified error message and validation result.

csharp
ValidationResultException(ValidationResult validationResult)

Parameters ​

  • validationResult (ValidationResult) - The validation result associated with the exception.

ValidationResultException ​

Initializes a new instance of the ValidationResultException class with a specified error message and inner exception.

csharp
ValidationResultException(string message, Exception innerException)

Parameters ​

  • message (string) - The error message that explains the reason for the exception.
  • innerException (Exception) - The inner exception that is the cause of the current exception.

Methods ​

MethodSummary
GetBaseException
GetObjectData
ToString
GetType
GetType
Equals
GetHashCode

GetBaseException ​

csharp
GetBaseException()

GetObjectData ​

csharp
GetObjectData()

ToString ​

csharp
ToString()

GetType ​

csharp
GetType()

GetType ​

csharp
GetType()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

ValidationResult ​

Gets the validation result associated with the exception.

Type: ValidationResult?

TargetSite ​

Type: object

Message ​

Type: object

Data ​

Type: object

InnerException ​

Type: object

Type: object

Source ​

Type: object

HResult ​

Type: object

StackTrace ​

Type: object