Class SecretsManagerException

All Implemented Interfaces:
Serializable

public class SecretsManagerException extends RuntimeException
Exception about any problem that occurred while communicating with a secret manager.
See Also:
  • Constructor Details

    • SecretsManagerException

      public SecretsManagerException(String message)
      Constructs a new SecretsManagerException with the specified detail message.
      Parameters:
      message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
    • SecretsManagerException

      public SecretsManagerException(String message, boolean secretNotFound)
      Constructs a new SecretsManagerException with the specified parameters.
      Parameters:
      message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
      secretNotFound - if true, this exception is about a secret that has not been found.
    • SecretsManagerException

      public SecretsManagerException(String message, Throwable cause)
      Constructs a new SecretsManagerException with the specified detail message and cause.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    • SecretsManagerException

      public SecretsManagerException(String message, Throwable cause, boolean secretNotFound)
      Constructs a new SecretsManagerException with the specified parameters.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
      secretNotFound - if true, this exception is about a secret that has not been found.
    • SecretsManagerException

      public SecretsManagerException(Throwable cause)
      Constructs a new SecretsManagerException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
      Parameters:
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    • SecretsManagerException

      public SecretsManagerException(Throwable cause, boolean secretNotFound)
      Constructs a new SecretsManagerException with the specified parameters.
      Parameters:
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
      secretNotFound - if true, this exception is about a secret that has not been found.
  • Method Details

    • isSecretNotFound

      public boolean isSecretNotFound()
      Returns true in case this exception is about a secret that has not been found; false otherwise.
      Returns:
      true in case this exception is about a secret that has not been found; false otherwise.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object