# Uses of Class
io.dapr.exceptions.DaprError

Packages that use DaprError
Package | Description
--- | ---
io.dapr.exceptions |

- ## Uses of DaprError in io.dapr.exceptions

  Methods in io.dapr.exceptions that return DaprError
  Modifier and Type | Method | Description
  --- | --- | ---
  `DaprError` | DaprError.`setErrorCode​(java.lang.String errorCode)` | Sets the error code.
  `DaprError` | DaprError.`setMessage​(java.lang.String message)` | Sets the error message.

  Constructors in io.dapr.exceptions with parameters of type DaprError
  Constructor | Description
  --- | ---
  `DaprException​(DaprError daprError)` | New exception from a server-side generated error code and message.
  `DaprException​(DaprError daprError, java.lang.Throwable cause)` | New exception from a server-side generated error code and message.