sync_auth/error.rs
1//! Error types for sync-auth.
2
3/// Errors that can occur during sync operations.
4#[derive(Debug, thiserror::Error)]
5pub enum SyncError {
6 #[error("git operation failed: {0}")]
7 Git(String),
8
9 #[error("io error: {0}")]
10 Io(#[from] std::io::Error),
11
12 #[error("provider not found: {0}")]
13 ProviderNotFound(String),
14
15 #[error("config error: {0}")]
16 Config(String),
17
18 #[error("sync conflict: {0}")]
19 Conflict(String),
20
21 #[error("serialization error: {0}")]
22 Serialization(String),
23}