use std::path::PathBuf;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum ShunError {
#[error("unsupported on this platform: {0}")]
Unsupported(&'static str),
#[error("invalid configuration: {0}")]
Config(String),
#[error("payload entry not found: {0}")]
MissingEntry(PathBuf),
#[error("json error: {0}")]
Json(#[from] serde_json::Error),
#[error("io error: {0}")]
Io(#[from] std::io::Error),
}