public class ApiException extends RuntimeException
| Constructor and Description |
|---|
ApiException(String message,
Throwable cause,
StatusCode statusCode,
boolean retryable) |
ApiException(Throwable cause,
StatusCode statusCode,
boolean retryable) |
| Modifier and Type | Method and Description |
|---|---|
StatusCode |
getStatusCode()
Returns the status code of the underlying exception.
|
boolean |
isRetryable()
Returns whether the failed request can be retried.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ApiException(Throwable cause, StatusCode statusCode, boolean retryable)
public ApiException(String message, Throwable cause, StatusCode statusCode, boolean retryable)
public boolean isRetryable()
public StatusCode getStatusCode()