Enum jujutsu_lib::backend::BackendError
source · pub enum BackendError {
InvalidHashLength {
expected: usize,
actual: usize,
object_type: String,
hash: String,
},
InvalidHash {
object_type: String,
hash: String,
source: Box<dyn Error + Send + Sync>,
},
InvalidUtf8 {
object_type: String,
hash: String,
source: FromUtf8Error,
},
ObjectNotFound {
object_type: String,
hash: String,
source: Box<dyn Error + Send + Sync>,
},
ReadObject {
object_type: String,
hash: String,
source: Box<dyn Error + Send + Sync>,
},
WriteObject {
object_type: &'static str,
source: Box<dyn Error + Send + Sync>,
},
Other(String),
}Variants§
Trait Implementations§
source§impl Debug for BackendError
impl Debug for BackendError
source§impl Display for BackendError
impl Display for BackendError
source§impl Error for BackendError
impl Error for BackendError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BackendError> for CheckOutCommitError
impl From<BackendError> for CheckOutCommitError
source§fn from(source: BackendError) -> Self
fn from(source: BackendError) -> Self
Converts to this type from the input type.
source§impl From<BackendError> for CheckoutError
impl From<BackendError> for CheckoutError
source§fn from(source: BackendError) -> Self
fn from(source: BackendError) -> Self
Converts to this type from the input type.
source§impl From<BackendError> for ResetError
impl From<BackendError> for ResetError
source§fn from(source: BackendError) -> Self
fn from(source: BackendError) -> Self
Converts to this type from the input type.
source§impl From<BackendError> for SnapshotError
impl From<BackendError> for SnapshotError
source§fn from(source: BackendError) -> Self
fn from(source: BackendError) -> Self
Converts to this type from the input type.
source§impl From<BackendError> for TreeMergeError
impl From<BackendError> for TreeMergeError
source§fn from(source: BackendError) -> Self
fn from(source: BackendError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for BackendError
impl From<DecodeError> for BackendError
source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for BackendError
impl From<Error> for BackendError
source§impl From<PersistError> for BackendError
impl From<PersistError> for BackendError
source§fn from(err: PersistError) -> Self
fn from(err: PersistError) -> Self
Converts to this type from the input type.