public class AlgoliaException
extends Exception
Any error that was encountered during the processing of a request. Could be server-side, network failure, or client-side.
| Constructor and Description |
|---|
AlgoliaException(String message) |
AlgoliaException(String message,
int statusCode) |
AlgoliaException(String message,
Throwable throwable) |
| Modifier and Type | Method and Description |
|---|---|
int |
getStatusCode()
Get the error’s HTTP status code (if any).
|
boolean |
isTransient()
Test whether this error is transient.
|
public AlgoliaException(String message)
public AlgoliaException(String message,
Throwable throwable)
public AlgoliaException(String message,
int statusCode)
public int getStatusCode()
Get the error’s HTTP status code (if any). Only valid when the exception is an application-level error. Values are documented in the REST API.
public boolean isTransient()
Test whether this error is transient.