Skip to main content

keepass/
error.rs

1//! Error types that this crate can return
2
3pub use crate::{
4    config::{CompressionConfigError, InnerCipherConfigError, KdfConfigError, OuterCipherConfigError},
5    crypt::CryptographyError,
6    db::{
7        CustomIconNotFoundError, DatabaseFormatError, DatabaseOpenError, DestinationGroupNotFoundError,
8        DuplicateEntryIdError, DuplicateGroupIdError, MoveGroupError, ParseColorError,
9    },
10    format::{
11        hmac_block_stream::BlockStreamError,
12        kdb::KdbOpenError,
13        kdbx3::{Kdbx3OpenError, Kdbx3OuterHeaderError},
14        kdbx4::{Kdbx4InnerHeaderError, Kdbx4OpenError, Kdbx4OuterHeaderError},
15        variant_dictionary::VariantDictionaryError,
16        xml_db::ParseXmlError,
17        DatabaseVersionParseError,
18    },
19    key::{DatabaseKeyError, ParseXmlKeyFileError},
20};
21
22#[cfg(feature = "challenge_response")]
23pub use crate::key::ChallengeResponseKeyError;
24
25#[cfg(feature = "save_kdbx4")]
26pub use crate::db::DatabaseSaveError;
27
28#[cfg(feature = "totp")]
29pub use crate::db::TOTPError;