public class ApiException extends RuntimeException
| Constructor and Description |
|---|
ApiException(String message,
Throwable cause,
StatusCode statusCode,
boolean retryable) |
ApiException(Throwable cause,
StatusCode statusCode,
boolean retryable) |
ApiException(Throwable cause,
StatusCode statusCode,
boolean retryable,
ErrorDetails errorDetails) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDomain()
Returns the logical grouping to which the "reason" belongs.
|
ErrorDetails |
getErrorDetails()
Returns all standard error messages that server sends.
|
Map<String,String> |
getMetadata()
Returns additional structured details about this exception.
|
String |
getReason()
Returns the reason of the exception.
|
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 ApiException(Throwable cause, StatusCode statusCode, boolean retryable, ErrorDetails errorDetails)
public boolean isRetryable()
public StatusCode getStatusCode()
public String getReason()
public String getDomain()
public Map<String,String> getMetadata()
public ErrorDetails getErrorDetails()