Skip to content
Clone
2e250d2
17 lines 654 B Rust
#[derive(Debug, thiserror::Error)]
pub enum LfsError {
#[error("invalid oid: {0}")]
InvalidOid(String),
#[error("lfs object not found: {0}")]
NotFound(String),
#[error("lfs object size mismatch: expected {expected}, got {actual}")]
SizeMismatch { expected: u64, actual: u64 },
#[error("lfs object hash mismatch: expected {expected}, got {actual}")]
HashMismatch { expected: String, actual: String },
#[error("lfs payload too large: limit {limit} bytes")]
PayloadTooLarge { limit: u64 },
#[error("io error: {0}")]
Io(String),
#[error("storage error: {0}")]
Storage(#[from] storage::StorageError),
}