030e59e
zhenyi
refactor(lib): migrate storage and security tier to central lib/config (auth, cache, db, email, jwt, payment, queue, rate_limit, storage)
030e59e
#[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),
}