gix_pack/index/write/
error.rs1#[derive(thiserror::Error, Debug)]
3#[allow(missing_docs)]
4pub enum Error {
5 #[error("An error occurred when writing the pack index file")]
6 Io(#[from] gix_hash::io::Error),
7 #[error("A pack entry could not be extracted")]
8 PackEntryDecode(#[from] crate::data::input::Error),
9 #[error("Indices of type {} cannot be written, only {} are supported", *.0 as usize, crate::index::Version::default() as usize)]
10 Unsupported(crate::index::Version),
11 #[error("Ref delta objects are not supported as there is no way to look them up. Resolve them beforehand.")]
12 IteratorInvariantNoRefDelta,
13 #[error("The iterator failed to set a trailing hash over all prior pack entries in the last provided entry")]
14 IteratorInvariantTrailer,
15 #[error("Only u32::MAX objects can be stored in a pack, found {0}")]
16 IteratorInvariantTooManyObjects(usize),
17 #[error("{pack_offset} is not a valid offset for pack offset {distance}")]
18 IteratorInvariantBaseOffset { pack_offset: u64, distance: u64 },
19 #[error(transparent)]
20 Tree(#[from] crate::cache::delta::Error),
21 #[error(transparent)]
22 TreeTraversal(#[from] crate::cache::delta::traverse::Error),
23}