pub enum Error {
Show 134 variants
Message(String),
PermissionDenied,
NotFile(PathBuf),
NotAuthenticated,
NoCache,
NoSearchIndex,
NoFilePassword,
NoOpenFolder,
NoDevice,
NoDefaultFolder,
PemEncoding,
NotFileContent,
NotArchived,
NoArchive,
AlreadyArchived,
NoContactsFolder,
NotContact,
NoSigner,
RecoveryThreshold(u8),
BadCipher(String, String),
NotDirectory(PathBuf),
InvalidKeyValue(String),
BadIdentity(u8, usize, String),
IdentityLength,
VaultIdentifierMismatch(VaultId, VaultId),
UnknownCipher(u8),
InvalidCipher(String),
InvalidKeyDerivation(String),
UnknownSecretKind(u8),
UnknownEventKind(u16),
UnknownIdentityKind(u8),
UnknownSharedAccessKind(u8),
InvalidNonce,
NoChangeEvent,
VaultLocked,
SecretAlreadyExists(String),
SecretDoesNotExist(Uuid),
DicewareWordsTooFew(usize, u8),
PassphraseVerification,
NotIdentityFolder,
NoSecretUrn(VaultId, Urn),
NoSecretId(VaultId, SecretId),
NoSigningKey,
NoIdentityKey,
VaultNotInit,
VaultAlreadyInit,
UnknownKeyTypeId,
InvalidPublicKeyLength(u8, usize),
VaultHashMismatch {
commit: String,
value: String,
id: Uuid,
},
HashMismatch {
commit: String,
value: String,
},
CreateEventMustBeFirst,
CreateEventOnlyFirst,
NoRootCommit,
NoLastCommit,
CommitNotFound(CommitHash),
RewindLeavesLength,
InvalidMethod(u16),
NotDigit,
InvalidVaultFlags,
InvalidSecretFlags,
UnknownPurpose(u8),
NoArchiveManifest,
NoArchiveVault(PathBuf),
ArchiveChecksumMismatch(String),
ZipDateTime,
AgeIdentityParse(String),
NoFolderPassword(VaultId),
NoFileEncryptionPassword,
VaultEntryKind(String),
NoArchiveAccount(String),
ArchiveAccountAlreadyExists(String),
NoDefaultVault(String),
NoVaultFile(String),
NoAccount(String),
ArchiveAddressMismatch,
NoArchiveDefaultVault,
NoSession,
BadSessionIdentity,
NoSessionIdentity,
NoSessionSalt,
NoSessionSharedSecret,
NoSessionKey,
BadNonce,
NotEcdsaKey,
NotEd25519Key,
NotSymmetric,
NotAsymmetric,
InvalidX25519Identity(String),
FieldNotFound(SecretId),
CacheNotAvailable(Uuid),
VaultUnlockFail,
NoOpenVault,
SecretNotFound(SecretId),
InvalidExternalFile(String),
BadAddressPrefix,
InvalidLength(usize),
RecoveryId,
AccountLocked,
CheckpointVerification {
checkpoint: CommitHash,
computed: CommitHash,
snapshot: Option<PathBuf>,
rollback_completed: bool,
},
EventTimeBehind,
Boxed(Box<dyn Error + Send + Sync>),
Io(Error),
Hex(FromHexError),
PasswordHash(Error),
ParseInt(ParseIntError),
UrlParse(ParseError),
Uuid(Error),
TryFromSlice(TryFromSliceError),
Elliptic(Error),
Merkle(Error),
Time(ComponentRange),
TimeFormat(Format),
TimeParse(Parse),
InvalidFormat(InvalidFormatDescription),
Pem(PemError),
Json(Error),
ChaCha(Error),
Urn(Error),
Zip(ZipError),
TryFromInt(TryFromIntError),
Ed25519(Error),
Base58(Error),
Sha2DigestLength(InvalidLength),
AgeEncrypt(EncryptError),
AgeDecrypt(DecryptError),
Walk(Error),
StripPrefix(StripPrefixError),
Join(JoinError),
Vsss(String),
Utf8String(Utf8Error),
Vcard(Error),
Migrate(Error),
MpscLockedNotify(SendError<()>),
TotpUrl(TotpUrlError),
}Expand description
Error thrown by the core library.
Variants§
Message(String)
Generic error message used when converting from some libraries
that return a String as an error.
PermissionDenied
Permission denied.
If a shared vault is set to private shared access and somebody other than the owner attempts to write to encrypt a shared entry this error is generated.
NotFile(PathBuf)
Error generated when a path is not a file.
NotAuthenticated
Error generated accessing an account that is not authenticated.
NoCache
Error generated if we could not determine a cache directory.
NoSearchIndex
Error generated when a search index is required.
NoFilePassword
Error generated when a file encryption password is required.
NoOpenFolder
Error generated when an open folder is expected.
NoDevice
Error generated when a device signer is expected.
NoDefaultFolder
Error generated when no default folder is available.
PemEncoding
Error generated when a PEM-encoded certificate is invalid.
NotFileContent
Error generated when a file secret is expected.
NotArchived
Error generated when attempting to unarchive a secret that is not archived.
NoArchive
Error generated when an archive folder is not available.
AlreadyArchived
Error generated when attempting to archive a secret that is already archived.
NoContactsFolder
contacts only.Error generated when a contacts folder is not available.
NotContact
contacts only.Error generated when a secret is not a contact secret.
NoSigner
Error generated when a signing key is required.
RecoveryThreshold(u8)
Error generated when a recovery group threshold is too small.
BadCipher(String, String)
Error generated attempting to encrypt or decrypt with the wrong cipher.
NotDirectory(PathBuf)
Error generated when a directory is expected.
InvalidKeyValue(String)
Error generated when attempting to parse a key/value pair.
BadIdentity(u8, usize, String)
Error generated when a vault identity byte is wrong.
IdentityLength
Error generated when a buffer used to read identity bytes is not long enough.
VaultIdentifierMismatch(VaultId, VaultId)
Error generated when vault identifiers must match.
UnknownCipher(u8)
Error generated when a vault cipher identifier byte is wrong.
InvalidCipher(String)
Error generated when a vault cipher string identifier is wrong.
InvalidKeyDerivation(String)
Error generated when a vault key derivation function string identifier is wrong.
UnknownSecretKind(u8)
Error generated when the kind of a secret is unknown.
UnknownEventKind(u16)
Error generated when the kind identifier of an event is unknown.
UnknownIdentityKind(u8)
Error generated when the kind of an identification secret is unknown.
Error generated when the kind of a shared access variant is unknown.
InvalidNonce
Error generated when an AeadPack contains a nonce that is invalid for the decryption cipher.
NoChangeEvent
Error generated attempting to convert to a change event.
VaultLocked
Error generated when a vault is locked.
SecretAlreadyExists(String)
Error generated when a secret already exists with the given label.
SecretDoesNotExist(Uuid)
Error generated when a secret does not exist for an update operation.
DicewareWordsTooFew(usize, u8)
Error generated when secret meta data does not exist.
PassphraseVerification
Error generated when attempting to verify a password fails.
This can happen when calling verify() on a Vault or unlock()
on a Gatekeeper.
NotIdentityFolder
Error generated when a login vault does not contain the identity bit flag.
NoSecretUrn(VaultId, Urn)
Error generated when a vault does not contain a secret by URN.
NoSecretId(VaultId, SecretId)
Error generated when a vault does not contain a secret by identifier.
NoSigningKey
Error generated when a signing key could not be found in an identity vault.
NoIdentityKey
Error generated when an identity key could not be found in an identity vault.
VaultNotInit
Error generated when a vault has not been initialized (no encrypted meta data).
VaultAlreadyInit
Error generated attempting to a initialize a vault when it has already been initialized.
UnknownKeyTypeId
Error generated when the type identifier for a public key is unknown.
InvalidPublicKeyLength(u8, usize)
Error generated when a public key has the wrong length.
VaultHashMismatch
Error generated when event log row data does not match the commit hash.
Fields
HashMismatch
Error generated when event log row data does not match the commit hash.
CreateEventMustBeFirst
Error generated when a a event log file does not begin with a create vault event.
CreateEventOnlyFirst
Error generated when a event log create vault event is not the first record.
NoRootCommit
Error generated when a commit tree is expected to have a root.
NoLastCommit
Error generated when a commit tree is expected to have a last commit.
CommitNotFound(CommitHash)
Error generated when a target commit hash could not be found.
RewindLeavesLength
Error generated trying to rewind an event log.
InvalidMethod(u16)
Error generated when an RPC method kind is invalid.
NotDigit
Error generated when a value is expected to be all digits.
InvalidVaultFlags
Error generated when decoding vault flags has invalid bits.
InvalidSecretFlags
Error generated when decoding secret flags has invalid bits.
UnknownPurpose(u8)
Error generated when decoding a vault purpose identifier that is not known.
NoArchiveManifest
Error generated an archive does not contain a manifest file.
NoArchiveVault(PathBuf)
Error generated an archive does not contain a manifest file.
ArchiveChecksumMismatch(String)
Error generated an archive does not contain a manifest file.
ZipDateTime
Error generated converting now to the zip date time format.
AgeIdentityParse(String)
Error generated parsing an AGE identity from a string.
NoFolderPassword(VaultId)
Error generated when a folder password in the identity vault could not be located.
NoFileEncryptionPassword
Error generated when a file encryption password could not be found.
VaultEntryKind(String)
Error generated when a vault entry in an identity vault is of the wrong secret kind.
NoArchiveAccount(String)
Error generated when an archive is for an address that does not exist locally when we are expecting an archive to be imported in the context of an existing account.
ArchiveAccountAlreadyExists(String)
Error generated attempting to restore an account from an archive whilst not authenticated and the address for the archive matches an account that already exists.
NoDefaultVault(String)
Error generated when the default vault for an account could not be found.
NoVaultFile(String)
Error generated when a vault file could not be located.
NoAccount(String)
Error generated when an account does not exist.
ArchiveAddressMismatch
Error generated when an archive signing key address does not match the address in the archive manifest.
NoArchiveDefaultVault
Error generated when an archive does not contain a default vault.
NoSession
Error generated when a session does not exist.
BadSessionIdentity
Error generated when a session identity signature does not match the initial address.
NoSessionIdentity
Error generated when attempting to compute a shared secret before a session identity has been proven.
NoSessionSalt
Error generated when a session does not yet have a salt.
Error generated when a session shared secret has not yet been created.
NoSessionKey
Error generated when a session key does not exist.
BadNonce
Error generated when a session receives a nonce that is equal to or less than the current server session nonce.
NotEcdsaKey
Error generated when an ECDSA signing key is expected.
NotEd25519Key
Error generated when an Ed25519 signing key is expected.
NotSymmetric
Error generated when attempting to use an asymmetric private key with a symmetric cipher.
NotAsymmetric
Error generated when attempting to use a symmetric private key with an asymmetric cipher.
InvalidX25519Identity(String)
Error generated when attempting to parse an AGE identity.
FieldNotFound(SecretId)
Error generated when an attachment could not be found.
CacheNotAvailable(Uuid)
Error generated attempting to access a vault that is not available.
VaultUnlockFail
Error generated when unlocking a vault failed.
NoOpenVault
Error generated attempting to make changes to the current vault but no vault is open.
SecretNotFound(SecretId)
Error generated when a secret could not be found.
InvalidExternalFile(String)
Error generated when an external file could not be parsed.
BadAddressPrefix
Error generated when an address has the wrong prefix.
InvalidLength(usize)
Invalid length, secp256k1 signatures are 65 bytes
RecoveryId
Expected a recovery identifier.
AccountLocked
Account is already locked.
CheckpointVerification
Error generated when replacing events in an event log does not compute the same root hash as the expected checkpoint.
EventTimeBehind
Attempt to apply a patch whose timestamp of the first event is younger than the last event in the log file.
Typically, this can happen when clocks are out of sync.
Boxed(Box<dyn Error + Send + Sync>)
Generic boxed error.
Io(Error)
Error generated by password hash.
Hex(FromHexError)
Error generated by password hash.
PasswordHash(Error)
Error generated by password hash.
ParseInt(ParseIntError)
Error generated parsing integers.
UrlParse(ParseError)
Error generated parsing URLs.
Uuid(Error)
Error generated parsing UUIDs.
TryFromSlice(TryFromSliceError)
Error generated converting to fixed length slice.
Elliptic(Error)
Error generated during AES encryption and decryption. Error generated by elliptic curve library.
Merkle(Error)
Error generated by the merkle tree library.
Time(ComponentRange)
Error generated converting time types.
TimeFormat(Format)
Error generated formatting time.
TimeParse(Parse)
Error generated parsing time.
InvalidFormat(InvalidFormatDescription)
Error generated creating format descriptions for date formatting.
Pem(PemError)
Error generated parsing PEM files.
Json(Error)
Error generated by the JSON library.
ChaCha(Error)
Error generated by the crypto library.
Urn(Error)
Error generated by the URN library.
Zip(ZipError)
archive or migrate only.Error generated by the async zip library.
TryFromInt(TryFromIntError)
Error generated when converting integers.
Ed25519(Error)
Error generated by the Ed25519 library.
Base58(Error)
Error generated by the Base58 library.
Sha2DigestLength(InvalidLength)
Error generated by the SHA2 library.
AgeEncrypt(EncryptError)
Error generated by the AGE library when encrypting.
AgeDecrypt(DecryptError)
Error generated by the AGE library when decrypting.
Walk(Error)
Error generated when walking a directory.
StripPrefix(StripPrefixError)
Error generated when stripping a prefix from a path.
Join(JoinError)
Error generated when attempting to join a task.
Vsss(String)
Error generated by verifiable secret sharing library.
Utf8String(Utf8Error)
Error generated converting from UTF8.
Vcard(Error)
contacts only.Error generated by the vcard library.
Migrate(Error)
migrate only.Error generated by the migrate library.
MpscLockedNotify(SendError<()>)
Error generated by the signin notifications channel.
TotpUrl(TotpUrlError)
Error generated by the TOTP library.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ComponentRange> for Error
impl From<ComponentRange> for Error
Source§fn from(source: ComponentRange) -> Self
fn from(source: ComponentRange) -> Self
Source§impl From<DecryptError> for Error
impl From<DecryptError> for Error
Source§fn from(source: DecryptError) -> Self
fn from(source: DecryptError) -> Self
Source§impl From<EncryptError> for Error
impl From<EncryptError> for Error
Source§fn from(source: EncryptError) -> Self
fn from(source: EncryptError) -> Self
Source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Source§impl From<InvalidFormatDescription> for Error
impl From<InvalidFormatDescription> for Error
Source§fn from(source: InvalidFormatDescription) -> Self
fn from(source: InvalidFormatDescription) -> Self
Source§impl From<InvalidLength> for Error
impl From<InvalidLength> for Error
Source§fn from(source: InvalidLength) -> Self
fn from(source: InvalidLength) -> Self
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Source§impl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
Source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Source§impl From<TotpUrlError> for Error
impl From<TotpUrlError> for Error
Source§fn from(source: TotpUrlError) -> Self
fn from(source: TotpUrlError) -> Self
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
Source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more