Class ProblemDetails.Error
the error details object
Inheritance
System.Object
ProblemDetails.Error
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 Error
Constructors
Error(ValidationFailure)
the error details object
Declaration
public Error(ValidationFailure failure)
Parameters
Type | Name | Description |
---|---|---|
FluentValidation.Results.ValidationFailure | failure |
Properties
Code
the code of the error
Declaration
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string Code { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |
---|---|
System.String |
Reason
the reason for the error
Declaration
public string Reason { get; set; }
Property Value
Type | Description |
---|---|
System.String |