Class ValidationFailureException
the exception thrown when validation failure occurs.
inspect the Failures
property for details.
Inheritance
ValidationFailureException
Assembly: FastEndpoints.dll
Syntax
public sealed class ValidationFailureException : Exception, ISerializable
Constructors
ValidationFailureException()
Declaration
public ValidationFailureException()
ValidationFailureException(IEnumerable<ValidationFailure>, string)
Declaration
public ValidationFailureException(IEnumerable<ValidationFailure> failures, string message)
Parameters
ValidationFailureException(string?)
Declaration
public ValidationFailureException(string? message)
Parameters
Type |
Name |
Description |
string |
message |
|
ValidationFailureException(string?, Exception?)
Declaration
public ValidationFailureException(string? message, Exception? innerException)
Parameters
Properties
Failures
the collection of failures that have occured.
Declaration
public IEnumerable<ValidationFailure>? Failures { get; init; }
Property Value
StatusCode
the status code to be used when building the error response.
Declaration
public int? StatusCode { get; }
Property Value
Implements