Table of Contents

Class ApiErrorResponse

Namespace
API.CliniCore.Common
Assembly
API.CliniCore.dll

Standardized error response for API errors>

public class ApiErrorResponse
Inheritance
ApiErrorResponse
Inherited Members

Properties

Errors

public List<string> Errors { get; set; }

Property Value

List<string>

Message

public string Message { get; set; }

Property Value

string

Timestamp

public DateTime Timestamp { get; set; }

Property Value

DateTime

TraceId

public string? TraceId { get; set; }

Property Value

string

Methods

FromErrors(string, IEnumerable<string>)

public static ApiErrorResponse FromErrors(string message, IEnumerable<string> errors)

Parameters

message string
errors IEnumerable<string>

Returns

ApiErrorResponse

FromMessage(string)

public static ApiErrorResponse FromMessage(string message)

Parameters

message string

Returns

ApiErrorResponse