Package com.algolia.exceptions
Class AlgoliaApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.algolia.exceptions.AlgoliaRuntimeException
com.algolia.exceptions.AlgoliaApiException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AlgoliaRequestException
Exception thrown in case of API failure such as 4XX, 5XX error.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAlgoliaApiException
(String message, int httpErrorCode) AlgoliaApiException
(String message, Throwable cause, int httpErrorCode) AlgoliaApiException
(Throwable cause, int httpErrorCode) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AlgoliaApiException
-
AlgoliaApiException
-
AlgoliaApiException
-
-
Method Details
-
getStatusCode
public int getStatusCode() -
getMessage
- Overrides:
getMessage
in classThrowable
-