Description
The ErrorDescription class is used to pass information about errors between microservices implemented in different languages. On the receiving side, ErrorDescription is used to recreate the exception object close to its original type without missing additional details. This class is serializeable.
Properties
Type
Data type of the original error.
publicstring Type { get; set; }
Category
Standard error category.
publicstring Category { get; set; }
Status
HTTP status code associated with this error type.
publicint Status { get; set; }
Code
A unique error code.
publicstring Code { get; set; }
Message
A human-readable error description (usually written in English).
publicstring Message { get; set; }
Details
Map with additional details that can be used to restore an error description in other languages.
publicStringValueMap Details { get; set; }
CorrelationId
A unique transaction id to trace execution throug call chain.
publicstring CorrelationId { get; set; }
Cause
Original error wrapped by this exception.
publicstring Cause { get; set; }
StackTrace
Stack trace of the exception.
publicstring StackTrace { get; set; }