public class NoSuchSecretException extends Exception
Constructor and Description |
---|
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.
|
NoSuchSecretException(String id)
Constructs the exception for the given purpose and secret stable id.
|
Modifier and Type | Method and Description |
---|---|
Purpose<?> |
getPurpose()
Returns the purpose for which no secret was found.
|
String |
getSecretId()
Returns the stable id of the secret that was not found, or null if not specified.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NoSuchSecretException(Purpose<?> purpose, String id)
purpose
- the purpose.id
- the stable id of the secret that was not found.public NoSuchSecretException(Purpose<?> purpose)
purpose
- the purpose.public NoSuchSecretException(String id)
id
- the stable id of the secret that was not found.public Purpose<?> getPurpose()
public String getSecretId()
Copyright © 2010-2018, ForgeRock All Rights Reserved.