#[derive(Debug, thiserror::Error)]
pub enum VssError {
#[error("i/o error reading VSS volume: {0}")]
Io(#[from] std::io::Error),
#[error("store index {index} out of range ({count} store(s) enumerated)")]
StoreIndexOutOfRange {
index: usize,
count: usize,
},
#[error("store {index} has no store-information pointer (no catalog type-0x03 entry)")]
StoreInfoUnavailable {
index: usize,
},
#[error("store {index} header offset {offset} runs past the {volume_size}-byte volume")]
StoreOffsetOutOfBounds {
index: usize,
offset: u64,
volume_size: u64,
},
}