public class JetStreamApiException
extends java.lang.Exception
| Constructor and Description |
|---|
JetStreamApiException(ApiResponse<?> apiResponse)
Deprecated.
Prefer to construct with JetStreamApiException(@NonNull Error)
Construct an exception with the response from the server.
|
JetStreamApiException(@NonNull Error error)
Construct an exception with an Error
|
| Modifier and Type | Method and Description |
|---|---|
int |
getApiErrorCode()
Get the error code from the response
|
int |
getErrorCode()
Get the error code from the response
|
java.lang.String |
getErrorDescription()
Get the description from the response
|
@Deprecated public JetStreamApiException(ApiResponse<?> apiResponse)
apiResponse - the response from the server.public JetStreamApiException(@NonNull Error error)
error - the errorpublic int getErrorCode()
public int getApiErrorCode()
public java.lang.String getErrorDescription()