Search Results for

    Show / Hide Table of Contents

    Class ProblemDetails

    RFC7807 compatible problem details/ error response class. this can be used by configuring startup like so:

    app.UseFastEndpoints(x => x.Errors.ResponseBuilder = ProblemDetails.ResponseBuilder);

    Inheritance
    System.Object
    ProblemDetails
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FastEndpoints
    Assembly: FastEndpoints.dll
    Syntax
    public sealed class ProblemDetails

    Constructors

    ProblemDetails(List<ValidationFailure>, String, String, Int32)

    RFC7807 compatible problem details/ error response class. this can be used by configuring startup like so:

    app.UseFastEndpoints(x => x.Errors.ResponseBuilder = ProblemDetails.ResponseBuilder);

    Declaration
    public ProblemDetails(List<ValidationFailure> failures, string instance, string traceId, int statusCode)
    Parameters
    Type Name Description
    System.Collections.Generic.List<FluentValidation.Results.ValidationFailure> failures
    System.String instance
    System.String traceId
    System.Int32 statusCode

    Properties

    AllowDuplicates

    controls whether duplicate errors with the same name should be allowed.

    Declaration
    public static bool AllowDuplicates { set; }
    Property Value
    Type Description
    System.Boolean

    Errors

    RFC7807 compatible problem details/ error response class. this can be used by configuring startup like so:

    app.UseFastEndpoints(x => x.Errors.ResponseBuilder = ProblemDetails.ResponseBuilder);

    Declaration
    public IEnumerable<ProblemDetails.Error> Errors { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<ProblemDetails.Error>

    Instance

    RFC7807 compatible problem details/ error response class. this can be used by configuring startup like so:

    app.UseFastEndpoints(x => x.Errors.ResponseBuilder = ProblemDetails.ResponseBuilder);

    Declaration
    public string Instance { get; set; }
    Property Value
    Type Description
    System.String

    ResponseBuilder

    the built-in function for transforming validation errors to a RFC7807 compatible problem details error response dto.

    Declaration
    public static Func<List<ValidationFailure>, HttpContext, int, object> ResponseBuilder { get; }
    Property Value
    Type Description
    System.Func<System.Collections.Generic.List<FluentValidation.Results.ValidationFailure>, Microsoft.AspNetCore.Http.HttpContext, System.Int32, System.Object>

    Status

    RFC7807 compatible problem details/ error response class. this can be used by configuring startup like so:

    app.UseFastEndpoints(x => x.Errors.ResponseBuilder = ProblemDetails.ResponseBuilder);

    Declaration
    public int Status { get; set; }
    Property Value
    Type Description
    System.Int32

    Title

    RFC7807 compatible problem details/ error response class. this can be used by configuring startup like so:

    app.UseFastEndpoints(x => x.Errors.ResponseBuilder = ProblemDetails.ResponseBuilder);

    Declaration
    public string Title { get; }
    Property Value
    Type Description
    System.String

    TitleValue

    globally sets the 'Title' value of the problem details dto.

    Declaration
    public static string TitleValue { set; }
    Property Value
    Type Description
    System.String

    TraceId

    RFC7807 compatible problem details/ error response class. this can be used by configuring startup like so:

    app.UseFastEndpoints(x => x.Errors.ResponseBuilder = ProblemDetails.ResponseBuilder);

    Declaration
    public string TraceId { get; set; }
    Property Value
    Type Description
    System.String

    Type

    RFC7807 compatible problem details/ error response class. this can be used by configuring startup like so:

    app.UseFastEndpoints(x => x.Errors.ResponseBuilder = ProblemDetails.ResponseBuilder);

    Declaration
    public string Type { get; }
    Property Value
    Type Description
    System.String

    TypeValue

    globally sets the 'Type' value of the problem details dto.

    Declaration
    public static string TypeValue { set; }
    Property Value
    Type Description
    System.String
    In This Article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX