use std::path::PathBuf;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum ProfileError {
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("JSON error: {0}")]
Json(#[from] serde_json::Error),
#[error("Could not determine home directory")]
HomeDirNotFound,
#[error("Profile not found: {path}")]
NotFound {
path: PathBuf,
},
#[error("Invalid profile filename: {0}")]
InvalidFilename(String),
}