public class DaprException extends RuntimeException
Constructor and Description |
---|
DaprException(DaprError daprError)
New exception from a server-side generated error code and message.
|
DaprException(DaprError daprError,
Throwable cause)
New exception from a server-side generated error code and message.
|
DaprException(String errorCode,
String message)
New Exception from a client-side generated error code and message.
|
DaprException(String errorCode,
String message,
Throwable cause)
New exception from a server-side generated error code and message.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
Returns the exception's error code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DaprException(DaprError daprError)
daprError
- Server-side error.public DaprException(DaprError daprError, Throwable cause)
daprError
- Client-side error.cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null
value is
permitted, and indicates that the cause is nonexistent or
unknown.)public DaprException(String errorCode, String message)
errorCode
- Client-side error code.message
- Client-side error message.public DaprException(String errorCode, String message, Throwable cause)
errorCode
- Client-side error code.message
- Client-side error message.cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null
value is
permitted, and indicates that the cause is nonexistent or
unknown.)public String getErrorCode()
Copyright © 2020. All rights reserved.