bitwarden_exporters/
error.rs1use bitwarden_error::bitwarden_error;
2use thiserror::Error;
3
4#[allow(missing_docs)]
5#[bitwarden_error(flat)]
6#[derive(Error, Debug)]
7pub enum ExportError {
8 #[error(transparent)]
9 MissingField(#[from] bitwarden_core::MissingFieldError),
10 #[error(transparent)]
11 NotAuthenticated(#[from] bitwarden_core::NotAuthenticatedError),
12 #[error(transparent)]
13 VaultLocked(#[from] bitwarden_core::VaultLockedError),
14
15 #[error("CSV error: {0}")]
16 Csv(#[from] crate::csv::CsvError),
17 #[error("Credential Exchange error: {0}")]
18 CxfError(#[from] crate::cxf::CxfError),
19 #[error("JSON error: {0}")]
20 Json(#[from] crate::json::JsonError),
21 #[error("Encrypted JSON error: {0}")]
22 EncryptedJsonError(#[from] crate::encrypted_json::EncryptedJsonError),
23
24 #[error(transparent)]
25 BitwardenCryptoError(#[from] bitwarden_crypto::CryptoError),
26 #[error(transparent)]
27 CipherError(#[from] bitwarden_vault::CipherError),
28}