blob: eb7733473adb22ba73dec5b952aca97bb747e67e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
///
pub mod conversion {
/// The error returned by [`crate::object::try_to_()`][crate::Object::try_to_commit_ref()].
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum Error {
#[error(transparent)]
Decode(#[from] gix_object::decode::Error),
#[error("Expected object type {}, but got {}", .expected, .actual)]
UnexpectedType {
expected: gix_object::Kind,
actual: gix_object::Kind,
},
}
}
///
pub mod find {
/// Indicate that an error occurred when trying to find an object.
pub type Error = gix_odb::store::find::Error;
///
pub mod existing {
/// An object could not be found in the database, or an error occurred when trying to obtain it.
pub type Error = gix_odb::find::existing::Error<gix_odb::store::find::Error>;
}
}
///
pub mod write {
/// An error to indicate writing to the loose object store failed.
pub type Error = gix_odb::store::write::Error;
}
|