use bitwarden_error::bitwarden_error;
use thiserror::Error;
#[bitwarden_error(flat)]
#[derive(Debug, Error)]
pub enum EncryptError {
#[error(transparent)]
Crypto(#[from] bitwarden_crypto::CryptoError),
#[error(transparent)]
VaultLocked(#[from] bitwarden_core::VaultLocked),
}
#[bitwarden_error(flat)]
#[derive(Debug, Error)]
pub enum DecryptError {
#[error(transparent)]
Crypto(#[from] bitwarden_crypto::CryptoError),
#[error(transparent)]
VaultLocked(#[from] bitwarden_core::VaultLocked),
}
#[derive(Debug, Error)]
pub enum VaultParseError {
#[error(transparent)]
Chrono(#[from] chrono::ParseError),
#[error(transparent)]
Crypto(#[from] bitwarden_crypto::CryptoError),
#[error(transparent)]
MissingFieldError(#[from] bitwarden_core::MissingFieldError),
}