Class ProblemDetails.Error
the error details object
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public sealed class ProblemDetails.Error
Constructors
Error()
Declaration
public Error()
Error(ValidationFailure)
Declaration
public Error(ValidationFailure failure)
Parameters
Type | Name | Description |
---|---|---|
ValidationFailure | failure |
Properties
Code
the code of the error
Declaration
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Code { get; set; }
Property Value
Type | Description |
---|---|
string |
IndicateSeverity
if set to true, the FluentValidation.Severity value of the failure will be serialized to the response.
Declaration
public static bool IndicateSeverity { get; set; }
Property Value
Type | Description |
---|---|
bool |
Name
the name of the error or property of the dto that caused the error
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Reason
the reason for the error
Declaration
public string Reason { get; set; }
Property Value
Type | Description |
---|---|
string |
Severity
the severity of the error
Declaration
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Severity { get; set; }
Property Value
Type | Description |
---|---|
string |