use thiserror::Error;
#[derive(Debug, Error)]
pub enum AnchorError {
#[error("Backend unavailable: {0}")]
BackendUnavailable(String),
#[error("Write failed: {0}")]
WriteFailed(String),
#[error("Read failed: {0}")]
ReadFailed(String),
#[error("Anchor not found: {0}")]
NotFound(String),
#[error("Verification failed: {0}")]
VerificationFailed(String),
#[error("Serialization error: {0}")]
Serialization(#[from] serde_json::Error),
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("Git error: {0}")]
Git(String),
#[error("Network error: {0}")]
Network(String),
}