Class ApiErrorResponse
Standardized error response for API errors>
public class ApiErrorResponse
- Inheritance
-
ApiErrorResponse
- Inherited Members
Properties
Errors
public List<string> Errors { get; set; }
Property Value
Message
public string Message { get; set; }
Property Value
Timestamp
public DateTime Timestamp { get; set; }
Property Value
TraceId
public string? TraceId { get; set; }
Property Value
Methods
FromErrors(string, IEnumerable<string>)
public static ApiErrorResponse FromErrors(string message, IEnumerable<string> errors)
Parameters
messagestringerrorsIEnumerable<string>
Returns
FromMessage(string)
public static ApiErrorResponse FromMessage(string message)
Parameters
messagestring