#[non_exhaustive]pub enum KdbOpenError {
InvalidFieldLength {
field_type: u16,
field_size: u32,
expected_field_size: u32,
},
InvalidGroupLevel {
current: Option<u16>,
expected: u16,
},
InvalidGroupId(Option<u32>),
InvalidGroupFieldType(u16),
IncompleteGroup,
EntryMissingGroupId,
InvalidEntryFieldType(u16),
IncompleteEntry,
InvalidFixedCipherID(u32),
}Expand description
Errors that can occur when opening a KeePass 1 database
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidFieldLength
A field has an invalid length (either too short or too long) compared to the expected length for its type
Fields
InvalidGroupLevel
A group has an invalid level that does not match the expected level based on the current depth of the group tree being parsed
Fields
InvalidGroupId(Option<u32>)
Encountered the end of a group definition without finding a valid group ID field, or found a group ID that does not match any previously defined group
InvalidGroupFieldType(u16)
Encountered a field type in a group definition that is not recognized as a valid group field type
IncompleteGroup
Encountered the end of the file before the current group definition was properly terminated with an end-of-group field
EntryMissingGroupId
Encountered an entry definition that is missing a valid group ID field
InvalidEntryFieldType(u16)
Encountered an invalid entry field type
IncompleteEntry
Encountered the end of the file before the current entry definition was properly terminated
InvalidFixedCipherID(u32)
The database is encrypted with a cipher that is not recognized or supported
Trait Implementations§
Source§impl Debug for KdbOpenError
impl Debug for KdbOpenError
Source§impl Display for KdbOpenError
impl Display for KdbOpenError
Source§impl Error for KdbOpenError
impl Error for KdbOpenError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()