read_url/git/
errors.rs

1use thiserror::*;
2
3//
4// GitError
5//
6
7/// Git error.
8#[derive(Debug, Error)]
9pub enum GitError {
10    /// Parse.
11    #[error("parse: {0}")]
12    Parse(#[from] gix::url::parse::Error),
13
14    /// Open.
15    #[error("open: {0}")]
16    Open(#[from] gix::open::Error),
17
18    /// Clone.
19    #[error("clone: {0}")]
20    Clone(#[from] gix::clone::Error),
21
22    /// Fetch.
23    #[error("fetch: {0}")]
24    Fetch(#[from] gix::clone::fetch::Error),
25
26    /// Head tree.
27    #[error("head tree: {0}")]
28    HeadTree(#[from] gix::reference::head_tree::Error),
29
30    /// Reference.
31    #[error("reference: {0}")]
32    Reference(#[from] gix::refs::name::Error),
33
34    /// Decode.
35    #[error("decode: {0}")]
36    Decode(#[from] gix::diff::object::decode::Error),
37
38    /// Find.
39    #[error("find: {0}")]
40    Find(#[from] gix::object::find::existing::Error),
41
42    /// Find with conversion.
43    #[error("find with conversion: {0}")]
44    FindWithConversion(#[from] gix::object::find::existing::with_conversion::Error),
45
46    /// Commit object.
47    #[error("commit object: {0}")]
48    CommitObject(#[from] gix::object::commit::Error),
49
50    /// Into.
51    #[error("into: {0}")]
52    Into(#[from] gix::object::try_into::Error),
53}