Class AlgoliaApiException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AlgoliaRequestException

public class AlgoliaApiException extends AlgoliaRuntimeException
Exception thrown in case of API failure such as 4XX, 5XX error.
See Also:
  • Constructor Details

    • AlgoliaApiException

      public AlgoliaApiException(String message, Throwable cause, int httpErrorCode)
    • AlgoliaApiException

      public AlgoliaApiException(String message, int httpErrorCode)
    • AlgoliaApiException

      public AlgoliaApiException(Throwable cause, int httpErrorCode)
  • Method Details

    • getStatusCode

      public int getStatusCode()
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable