com.algolia.exceptions.AlgoliaResponseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of algoliasearch Show documentation
Show all versions of algoliasearch Show documentation
Java client for Algolia Search API
The newest version!
package com.algolia.exceptions;
/** Exception thrown in case of API failure such as 4XX, 5XX error. */
public class AlgoliaResponseException extends AlgoliaRuntimeException {
private static final long serialVersionUID = 1L;
public int getHttpErrorCode() {
return httpErrorCode;
}
private final int httpErrorCode;
public AlgoliaResponseException(String message, Throwable cause, int httpErrorCode) {
super(message, cause);
this.httpErrorCode = httpErrorCode;
}
public AlgoliaResponseException(String message, int httpErrorCode) {
super(message);
this.httpErrorCode = httpErrorCode;
}
public AlgoliaResponseException(Throwable cause, int httpErrorCode) {
super(cause);
this.httpErrorCode = httpErrorCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy