
io.polyglotted.elastic.client.ElasticException Maven / Gradle / Ivy
The newest version!
package io.polyglotted.elastic.client;
@SuppressWarnings({"Serial", "WeakerAccess"})
public class ElasticException extends RuntimeException {
ElasticException(String message) { super(message); }
ElasticException(String message, Throwable cause) { super(message, cause); }
static void checkState(boolean status, String message) { if (!status) throw new ElasticException(message); }
static ElasticException throwEx(String message, Throwable cause) {
return (cause instanceof ElasticException) ? (ElasticException) cause : new ElasticException(message + ": " + cause.getMessage(), cause);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy