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
getType
Gets the type.
publicString getType()
- returns: string - type.
setType
Sets the type.
publicvoid setType(String value)
- value: String - type.
getCategory
Gets the category.
publicString getCategory()
- returns: String - category.
setCategory
Sets the category.
publicvoid setCategory(String value)
- value: String - category.
getStatus
Gets the status.
publicint getStatus()
- returns: String - status.
setStatus
Sets the status.
publicvoid setStatus(int value)
- value: int - status.
getCode
Gets the code.
publicString getCode()
- returns: String - code.
setCode
Sets the code.
publicvoid setCode(String value)
- value: String - code.
getMessage
Gets the message.
publicString getMessage()
- returns: String - message.
setMessage
Sets the message.
publicvoid setMessage(String value)
- value: String - message.
getDetails
Gets the details.
publicStringValueMap getDetails()
- returns: String - detais.
setDetails
Sets the details.
publicvoid setDetails(StringValueMap value)
- value: StringValueMap - details.
getTraceId
Gest the traceID.
publicString getTraceId()
- returns: String - traceId.
setTraceId
Sets the traceId.
publicvoid setTraceId(String value)
- value: String - traceId.
getCause
Gets the cause.
publicString getCause()
- returns: String - cause.
setCause
Sets the cause.
publicvoid setCause(String value)
- value: String - cause.
getStackTrace
Gets the stackTrace.
publicString getStackTrace()
- returns: String - stackTrace.
setStackTrace
Sets the stackTrace.
publicvoid setStackTrace(String value)
- value: String - stackTrace.