Package org.forgerock.secrets
Class NoSuchSecretException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.forgerock.secrets.NoSuchSecretException
- All Implemented Interfaces:
Serializable
Indicates that no secret was configured for the given purpose, or the named secret is not available.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs the exception for the given secret stable id.NoSuchSecretException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.NoSuchSecretException
(Purpose<?> purpose) Constructs the exception for the given purpose.NoSuchSecretException
(Purpose<?> purpose, String id) Constructs the exception for the given purpose and secret stable id. -
Method Summary
Modifier and TypeMethodDescriptionPurpose<?>
Returns the purpose for which no secret was found, or null if not specified.Returns the stable id of the secret that was not found, or null if not specified.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchSecretException
Constructs the exception for the given purpose and secret stable id.- Parameters:
purpose
- the purpose.id
- the stable id of the secret that was not found.
-
NoSuchSecretException
Constructs the exception for the given purpose.- Parameters:
purpose
- the purpose.
-
NoSuchSecretException
Constructs the exception for the given secret stable id.- Parameters:
id
- the stable id of the secret that was not found.
-
NoSuchSecretException
Constructs a new exception with the specified detail message and cause. Note that this does not capture thesecretId
orpurpose
.- Parameters:
message
- the detail messagecause
- the cause
-
-
Method Details
-
getPurpose
Returns the purpose for which no secret was found, or null if not specified.- Returns:
- the purpose for which no secret was found.
-
getSecretId
Returns the stable id of the secret that was not found, or null if not specified.- Returns:
- the stable if of the secret that was not found, or null if not specified.
-