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