Class ValidationException
Represents a validation exception
Constructors
ValidationException(ValidationResult, String)
Constructs a ValidationException
Declaration
public ValidationException(ValidationResult result, string json)
Parameters
Type | Name | Description |
---|---|---|
FluentValidation.Results.ValidationResult | result | The validation result |
System.String | json | The json for validation |
Properties
Failures
The failures of the validation exception
Declaration
public IList<ValidationFailure> Failures { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<FluentValidation.Results.ValidationFailure> |
Json
The Json that was deserialized for validation
Declaration
public string Json { get; }
Property Value
Type | Description |
---|---|
System.String |