Package io.dapr.exceptions
Class DaprError
- java.lang.Object
-
- io.dapr.exceptions.DaprError
-
public class DaprError extends Object
Represents an error message from Dapr.
-
-
Constructor Summary
Constructors Constructor Description DaprError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorCode()
Gets the error code.String
getMessage()
Gets the error message.DaprError
setErrorCode(String errorCode)
Sets the error code.DaprError
setMessage(String message)
Sets the error message.
-
-
-
Method Detail
-
getErrorCode
public String getErrorCode()
Gets the error code.- Returns:
- Error code.
-
setErrorCode
public DaprError setErrorCode(String errorCode)
Sets the error code.- Parameters:
errorCode
- Error code.- Returns:
- This instance.
-
getMessage
public String getMessage()
Gets the error message.- Returns:
- Error message.
-
-