Class NoSuchSecretException

  • All Implemented Interfaces:
    Serializable

    public class NoSuchSecretException
    extends Exception
    Indicates that no secret was configured for the given purpose, or the named secret is not available.
    See Also:
    Serialized Form
    • Constructor Detail

      • NoSuchSecretException

        public NoSuchSecretException​(Purpose<?> purpose,
                                     String id)
        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

        public NoSuchSecretException​(Purpose<?> purpose)
        Constructs the exception for the given purpose.
        Parameters:
        purpose - the purpose.
      • NoSuchSecretException

        public NoSuchSecretException​(String id)
        Constructs the exception for the given purpose and secret stable id.
        Parameters:
        id - the stable id of the secret that was not found.
    • Method Detail

      • getPurpose

        public Purpose<?> getPurpose()
        Returns the purpose for which no secret was found.
        Returns:
        the purpose for which no secret was found.
      • getSecretId

        public String 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.