digital.toke.exception.LoginFailedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vault-java-driver Show documentation
Show all versions of vault-java-driver Show documentation
A java driver for a subset of Hashicorp's Vault HTTP REST API.
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 David R. Smith All Rights Reserved
*/
package digital.toke.exception;
import java.util.List;
import digital.toke.Token;
/**
* Thrown when login fails for a network-oriented reason or some other reason releated to the attempt.
* See
*
* @author David R. Smith <[email protected]>
*
*/
public class LoginFailedException extends TokeException {
private static final long serialVersionUID = 1L;
Token badToken;
public LoginFailedException() {}
public LoginFailedException(Token badToken) {
this.badToken = badToken;
}
public LoginFailedException(String arg0) {
super(arg0);
}
public LoginFailedException(Throwable arg0) {
super(arg0);
}
public Token getBadToken() {
return badToken;
}
public List errors() {
return badToken.errors();
}
}