Class 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.
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.
Fields
Instance methods
fromJson
Adds field to ErrorDescription from a json map
void fromJson(Map<String, dynamic> json)
- json: Map<String, dynamic> - serealized json map
toJson
Converts ErrorDescription to a json Map
Map<String, dynamic> toJson()
- returns: Map<String, dynamic> - serealized json map