Package com.exedio.cope.vault
Class VaultNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.exedio.cope.vault.VaultNotFoundException
- All Implemented Interfaces:
Serializable
Signals, that an attempt to fetch data by its hash from a
VaultService
failed
because for this hash nothing was
put
to the service before.
Is thrown for valid hashes only, i.e. hashes for which the service could store data. Should not be thrown for invalid hashes, such as hashes which are either too short or too long or which do contain invalid (non-hex) characters. Must not be thrown for any other error, such as IO errors, authentication failures etc.
- Author:
- Ralf Wiebicke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVaultNotFoundException
(String hash) VaultNotFoundException
(String hash, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
anonymiseHash
(String hash) getHash()
Deprecated.Consider usinggetHashAnonymous()
instead to avoid leaking sensitive data.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VaultNotFoundException
-
VaultNotFoundException
-
-
Method Details
-
getHash
Deprecated.UsegetHashComplete()
instead -
getHashComplete
Consider usinggetHashAnonymous()
instead to avoid leaking sensitive data. Hashes may be one of the access control keys for the data hashed - so putting hashes into log files etc. may be dangerous. -
getHashAnonymous
-
getMessage
- Overrides:
getMessage
in classThrowable
-
anonymiseHash
-
getHashComplete()
instead