#![allow(clippy::module_name_repetitions)]
use std::io;
#[derive(Debug, thiserror::Error)]
pub enum ConfigError {
#[error("I/O error reading config: {0}")]
Io(#[from] io::Error),
#[error("TOML parse error: {0}")]
Toml(#[from] toml::de::Error),
#[error("TOML serialise error: {0}")]
TomlSer(#[from] toml::ser::Error),
#[error("invalid value for {field}: {reason}")]
InvalidValue {
field: String,
reason: String,
},
#[error("duplicate categorizer name: {0}")]
DuplicateCategorizer(String),
#[error("unknown codec: {0}")]
UnknownCodec(String),
}