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
Exception thrown in case of API failure such as 4XX, 5XX error.
- See Also:
-
Field Summary
Fields -
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, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
AlgoliaApiException
-
AlgoliaApiException
-
AlgoliaApiException
-
-
Method Details
-
getHttpErrorCode
public int getHttpErrorCode()
-