use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("Invalid specification: {0}")]
InvalidSpec(String),
#[error("Provider not found: {0}")]
ProviderNotFound(String),
#[error("Resolution failed: {0}")]
ResolutionFailed(String),
#[error("Type mismatch")]
TypeMismatch,
#[cfg(feature = "reqwest")]
#[error("HTTP error: {0}")]
HttpError(#[from] reqwest::Error),
#[error("Sync resolution not supported for provider: {0}")]
SyncResolutionNotSupported(String),
#[error("Parse error: {0}")]
ParseError(String),
}