public abstract class ClientError
extends java.lang.Exception
| Constructor and Description |
|---|
ClientError(java.lang.String message,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApi()
Gets the
Channel method name in which the ConsumerError occurred. |
abstract int |
getStatusCode()
Get the HTTP Status Code that caused the error.
|
void |
setApi(java.lang.String api)
Sets the
Channel method name in which the ConsumerError occurred. |
public ClientError(java.lang.String message,
java.lang.Throwable cause)
message - error descriptioncause - if ClientError is thrown as consequence of another exception. If ClientError is not caused by
another exception, then it set to null.public java.lang.String getApi()
Channel method name in which the ConsumerError occurred.public void setApi(java.lang.String api)
Channel method name in which the ConsumerError occurred.api - the Channel method name, e.g.: create, subscribe, consume, commit, runpublic abstract int getStatusCode()