use thiserror::Error;
#[derive(Error, Debug)]
pub enum AuthError {
#[error("Authentication error:\n{0}")]
Authentication(String),
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("Configuration error: {0}")]
Config(String),
#[error("YAML parse error in {input}: {source}")]
YamlInput {
input: &'static str,
#[source]
source: yaml_edit::YamlError,
},
#[error("Regex error: {0}")]
Regex(#[from] regex::Error),
}