1use thiserror::Error;
2
3#[derive(Error, Debug)]
5pub enum Error {
6 #[error("Invalid specification: {0}")]
8 InvalidSpec(String),
9
10 #[error("Provider not found: {0}")]
12 ProviderNotFound(String),
13
14 #[error("Resolution failed: {0}")]
16 ResolutionFailed(String),
17
18 #[error("Type mismatch")]
20 TypeMismatch,
21
22 #[cfg(feature = "reqwest")]
24 #[error("HTTP error: {0}")]
25 HttpError(#[from] reqwest::Error),
26
27 #[error("Sync resolution not supported for provider: {0}")]
29 SyncResolutionNotSupported(String),
30
31 #[error("Parse error: {0}")]
33 ParseError(String),
34}