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.
ValidationResultException()ValidationResultException
Initializes a new instance of the ValidationResultException class with a specified error message.
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.
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.
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
| Method | Summary |
|---|---|
| GetBaseException | |
| GetObjectData | |
| ToString | |
| GetType | |
| GetType | |
| Equals | |
| GetHashCode |
GetBaseException
GetBaseException()GetObjectData
GetObjectData()ToString
ToString()GetType
GetType()GetType
GetType()Equals
Equals()GetHashCode
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
HelpLink
Type: object
Source
Type: object
HResult
Type: object
StackTrace
Type: object