Class SecretNotFoundException

All Implemented Interfaces:
Serializable

public class SecretNotFoundException extends VaultException
An exception which is used in case that no secret is found from Vault server.
Since:
2.3
Author:
Younghwan Jang, Mark Paluch
See Also:
  • Constructor Details

    • SecretNotFoundException

      public SecretNotFoundException(String msg, String path)
      Create a SecretNotFoundException with the specified detail message.
      Parameters:
      msg - the detail message.
      path - the canonical data path.
    • SecretNotFoundException

      public SecretNotFoundException(String msg, Throwable cause, String path)
      Create a SecretNotFoundException with the specified detail message and nested exception.
      Parameters:
      msg - the detail message.
      cause - the nested exception.
      path - the canonical data path.
  • Method Details

    • getPath

      public String getPath()
      Returns:
      the path to the requested secret.