Package com.algolia.search.exceptions
Class AlgoliaApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.algolia.search.exceptions.AlgoliaRuntimeException
-
- com.algolia.search.exceptions.AlgoliaApiException
-
- All Implemented Interfaces:
Serializable
public class AlgoliaApiException extends AlgoliaRuntimeException
Exception thrown in case of API failure such as 4XX, 5XX error.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlgoliaApiException(String message, int httpErrorCode)AlgoliaApiException(String message, Throwable cause, int httpErrorCode)AlgoliaApiException(Throwable cause, int httpErrorCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHttpErrorCode()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-