Enum crypto_vault::VaultError [] [src]

pub enum VaultError {
    Base64Error(FromBase64Error),
    VaultEntrySchemaError(DecoderError),
    BadPasswordError,
    NoPasswordSpecifiedError,
}

Various errors for vault operations

Variants

Base64Error

If the vault is corrupted, we may not be able to read the base64 encoded data

VaultEntrySchemaError

This happens when the data in the vault is valid, but does not match the vault type

BadPasswordError

When the decrypted data is not valid JSON

NoPasswordSpecifiedError

When you attempt to encrypt a Vault that has no password set

Trait Implementations

impl From<DecoderError> for VaultError

fn from(e: DecoderError) -> VaultError

impl From<FromBase64Error> for VaultError

fn from(e: FromBase64Error) -> VaultError

Derived Implementations

impl Debug for VaultError

fn fmt(&self, __arg_0: &mut Formatter) -> Result