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

io.polyglotted.elastic.index.ValidateException Maven / Gradle / Ivy

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

@SuppressWarnings({"serial", "WeakerAccess"})
public class ValidateException extends RuntimeException {
    public final int status;

    public ValidateException(int status, String message) { super(message); this.status = status; }

    public static  T validateNotNull(T object, String message) {
        if (object == null) { throw new ValidateException(404, message); }
        return object;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy