Package io.dapr.exceptions
Class DaprError
java.lang.Object
io.dapr.exceptions.DaprError
Represents an error message from Dapr.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the error details.Gets the error code.Gets the error message.setDetails
(List<Map<String, Object>> details) Sets the error details.setErrorCode
(String errorCode) Sets the error code.setMessage
(String message) Sets the error message.
-
Constructor Details
-
DaprError
public DaprError()
-
-
Method Details
-
getErrorCode
Gets the error code.- Returns:
- Error code.
-
setErrorCode
Sets the error code.- Parameters:
errorCode
- Error code.- Returns:
- This instance.
-
getMessage
Gets the error message.- Returns:
- Error message.
-
setMessage
Sets the error message.- Parameters:
message
- Error message.- Returns:
- This instance.
-
getDetails
Gets the error details.- Returns:
- Error details.
-
setDetails
Sets the error details.- Parameters:
details
- Error details.- Returns:
- This instance.
-