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
Modifier and Type Method Description StringgetErrorCode()Gets the error code.StringgetMessage()Gets the error message.DaprErrorsetErrorCode(String errorCode)Sets the error code.DaprErrorsetMessage(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.
-