use interrupt_support::Interrupted;
#[derive(Debug, thiserror::Error)]
pub enum SyncManagerError {
#[error("Unknown engine: {0}")]
UnknownEngine(String),
#[error("Manager was compiled without support for {0:?}")]
UnsupportedFeature(String),
#[error("Sync error: {0}")]
Sync15Error(#[from] sync15::Error),
#[error("URL parse error: {0}")]
UrlParseError(#[from] url::ParseError),
#[error("Operation interrupted")]
InterruptedError(#[from] Interrupted),
#[error("Error parsing JSON data: {0}")]
JsonError(#[from] serde_json::Error),
#[error("Logins error: {0}")]
LoginsError(#[from] logins::Error),
#[error("Places error: {0}")]
PlacesError(#[from] places::Error),
#[error("External error: {0}")]
AnyhowError(#[from] anyhow::Error),
}
pub type Result<T> = std::result::Result<T, SyncManagerError>;