Package overit.geocall.secrets
Class SecretsManagerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
overit.geocall.secrets.SecretsManagerException
- All Implemented Interfaces:
Serializable
Exception about any problem that occurred while communicating with a secret manager.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSecretsManagerException(String message) Constructs a newSecretsManagerExceptionwith the specified detail message.SecretsManagerException(String message, boolean secretNotFound) Constructs a newSecretsManagerExceptionwith the specified parameters.SecretsManagerException(String message, Throwable cause) Constructs a newSecretsManagerExceptionwith the specified detail message and cause.SecretsManagerException(String message, Throwable cause, boolean secretNotFound) Constructs a newSecretsManagerExceptionwith the specified parameters.SecretsManagerException(Throwable cause) Constructs a newSecretsManagerExceptionwith the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause).SecretsManagerException(Throwable cause, boolean secretNotFound) Constructs a newSecretsManagerExceptionwith the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanReturnstruein case this exception is about a secret that has not been found;falseotherwise.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SecretsManagerException
Constructs a newSecretsManagerExceptionwith the specified detail message.- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.
-
SecretsManagerException
Constructs a newSecretsManagerExceptionwith the specified parameters.- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.secretNotFound- iftrue, this exception is about a secret that has not been found.
-
SecretsManagerException
Constructs a newSecretsManagerExceptionwith the specified detail message and cause.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
SecretsManagerException
Constructs a newSecretsManagerExceptionwith the specified parameters.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)secretNotFound- iftrue, this exception is about a secret that has not been found.
-
SecretsManagerException
Constructs a newSecretsManagerExceptionwith the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause).- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
SecretsManagerException
Constructs a newSecretsManagerExceptionwith the specified parameters.- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)secretNotFound- iftrue, this exception is about a secret that has not been found.
-
-
Method Details
-
isSecretNotFound
public boolean isSecretNotFound()Returnstruein case this exception is about a secret that has not been found;falseotherwise.- Returns:
truein case this exception is about a secret that has not been found;falseotherwise.
-
equals
-
hashCode
public int hashCode()
-