All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.polyglotted.elastic.client.ElasticException Maven / Gradle / Ivy

There is a newer version: 6.8.5
Show newest version
package io.polyglotted.elastic.client;

@SuppressWarnings("Serial")
public class ElasticException extends RuntimeException {

    protected ElasticException(String message) { super(message); }

    protected 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 - 2024 Weber Informatics LLC | Privacy Policy