public class JetStreamApiException
extends java.lang.Exception
Constructor and Description |
---|
JetStreamApiException(ApiResponse<?> apiResponse)
Construct an exception with the response from the server.
|
JetStreamApiException(Error 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
|
public JetStreamApiException(ApiResponse<?> apiResponse)
apiResponse
- the response from the server.public JetStreamApiException(Error error)
public int getErrorCode()
public int getApiErrorCode()
public java.lang.String getErrorDescription()