Skip to main content

maw_lfs/
error.rs

1//! Top-level error type for maw-lfs.
2//!
3//! Each submodule defines its own specific error type; `LfsError` wraps them
4//! for callers that don't need to distinguish.
5
6use thiserror::Error;
7
8#[derive(Debug, Error)]
9pub enum LfsError {
10    #[error("pointer: {0}")]
11    Pointer(#[from] crate::pointer::ParseError),
12
13    #[error("store: {0}")]
14    Store(#[from] crate::store::StoreError),
15
16    #[error("attributes: {0}")]
17    Attrs(#[from] crate::attrs::AttrsError),
18
19    #[error("batch: {0}")]
20    Batch(#[from] crate::batch::BatchError),
21
22    #[error("credentials: {0}")]
23    Creds(#[from] crate::creds::CredsError),
24}