pub enum Error {
Show 33 variants
NoRootCommit,
NoLastCommit,
InvalidExternalFile(String),
UnknownEventKind(u16),
UnknownEventType(String),
NotSymmetric,
NotAsymmetric,
InvalidCipher(String),
InvalidNonce,
InvalidKeyDerivation(String),
BadAccountIdPrefix,
BadIdentity(u8, usize, String),
IdentityLength,
CreateEventMustBeFirst,
CreateEventOnlyFirst,
Boxed(Box<dyn Error + Send + Sync>),
Io(Error),
Authentication(AuthenticationError),
Json(Error),
Base58(Error),
TryFromSlice(TryFromSliceError),
Hex(FromHexError),
Uuid(Error),
Time(ComponentRange),
TimeFormat(Format),
TimeParse(Parse),
InvalidFormat(InvalidFormatDescription),
Sha2DigestLength(InvalidLength),
Pem(PemError),
ChaCha(Error),
PasswordHash(Error),
AgeEncrypt(EncryptError),
AgeDecrypt(DecryptError),
}Expand description
Error thrown by the core library.
Variants§
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.
InvalidExternalFile(String)
Error generated when an external file could not be parsed.
UnknownEventKind(u16)
Error generated when the kind identifier of an event is unknown.
UnknownEventType(String)
Error generated when the kind identifier of an event is unknown.
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.
InvalidCipher(String)
Error generated when a vault cipher string identifier is wrong.
InvalidNonce
Error generated when an AeadPack contains a nonce that is invalid for the decryption cipher.
InvalidKeyDerivation(String)
Error generated when a vault key derivation function string identifier is wrong.
BadAccountIdPrefix
Error generated when an account identififer has the wrong prefix.
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.
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.
Boxed(Box<dyn Error + Send + Sync>)
Generic boxed error.
Io(Error)
Error generated converting by the IO module.
Authentication(AuthenticationError)
Authentication errors.
Json(Error)
Error generated by the JSON library.
Base58(Error)
Error generated by the Base58 library.
TryFromSlice(TryFromSliceError)
Error generated converting to fixed length slice.
Hex(FromHexError)
Error generated converting from hexadecimal.
Uuid(Error)
Error generated converting from UUID.
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.
Sha2DigestLength(InvalidLength)
Error generated by the SHA2 library.
Pem(PemError)
Error generated parsing PEM files.
ChaCha(Error)
Error generated by the crypto library.
PasswordHash(Error)
Error generated by password hash.
AgeEncrypt(EncryptError)
Error generated by the AGE library when encrypting.
AgeDecrypt(DecryptError)
Error generated by the AGE library when decrypting.