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

io.elastic.api.InvalidCredentialsException Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
package io.elastic.api;

import javax.json.JsonObject;

/**
 * Thrown by {@link CredentialsVerifier#verify(JsonObject)}
 * when authentication credentials are invalid.
 */
public class InvalidCredentialsException extends Exception {

    /**
     * Creates a new InvalidCredentialsException with a null detail message.
     */
    public InvalidCredentialsException() {
    }

    /**
     * Creates a new InvalidCredentialsException with the specified message.
     *
     * @param message message the exception detail message
     */
    public InvalidCredentialsException(String message) {
        super(message);
    }

    /**
     * Creates a new InvalidCredentialsException with the specified
     * detail message and cause.
     *
     * @param message   the exception detail message
     * @param throwable the Throwable that caused this exception
     */
    public InvalidCredentialsException(String message, Throwable throwable) {
        super(message, throwable);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy