Search Results for

    Show / Hide Table of Contents

    Class ValidationFailureException

    the exception thrown when validation failure occurs. inspect the Failures property for details.

    Inheritance
    object
    Exception
    ValidationFailureException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.ReferenceEquals(object, object)
    Namespace: FastEndpoints
    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
    Type Name Description
    IEnumerable<ValidationFailure> failures
    string message

    ValidationFailureException(string?)

    Declaration
    public ValidationFailureException(string? message)
    Parameters
    Type Name Description
    string message

    ValidationFailureException(string?, Exception?)

    Declaration
    public ValidationFailureException(string? message, Exception? innerException)
    Parameters
    Type Name Description
    string message
    Exception innerException

    Properties

    Failures

    the collection of failures that have occured.

    Declaration
    public IEnumerable<ValidationFailure>? Failures { get; init; }
    Property Value
    Type Description
    IEnumerable<ValidationFailure>

    StatusCode

    the status code to be used when building the error response.

    Declaration
    public int? StatusCode { get; }
    Property Value
    Type Description
    int?

    Implements

    ISerializable
    In this article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX