Package org.springframework.vault.core
Class SecretNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.vault.VaultException
org.springframework.vault.core.SecretNotFoundException
- All Implemented Interfaces:
Serializable
An exception which is used in case that no secret is found from Vault server.
- Since:
- 2.3
- Author:
- Younghwan Jang, Mark Paluch
- See Also:
-
Constructor Summary
ConstructorDescriptionSecretNotFoundException
(String msg, String path) Create aSecretNotFoundException
with the specified detail message.SecretNotFoundException
(String msg, Throwable cause, String path) Create aSecretNotFoundException
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
-
SecretNotFoundException
Create aSecretNotFoundException
with the specified detail message.- Parameters:
msg
- the detail message.path
- the canonical data path.
-
SecretNotFoundException
Create aSecretNotFoundException
with the specified detail message and nested exception.- Parameters:
msg
- the detail message.cause
- the nested exception.path
- the canonical data path.
-
-
Method Details
-
getPath
- Returns:
- the path to the requested secret.
-