Class VaultLoginException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.vault.VaultException
org.springframework.vault.authentication.VaultLoginException
- All Implemented Interfaces:
Serializable
Exception thrown if Vault login fails. The root cause is typically attached as cause.
- Since:
- 2.1
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate aVaultLoginException
with the specified detail message.VaultLoginException
(String msg, Throwable cause) Create aVaultLoginException
with the specified detail message and nested exception. -
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VaultLoginException
Create aVaultLoginException
with the specified detail message.- Parameters:
msg
- the detail message.
-
VaultLoginException
Create aVaultLoginException
with the specified detail message and nested exception.- Parameters:
msg
- the detail message.cause
- the nested exception.
-
-
Method Details
-
create
- Parameters:
authMethod
- must not be null.cause
- must not be null.- Returns:
- the
VaultLoginException
.
-