matrix_bridge_telegram/config/
validator.rs1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum ConfigError {
5 #[error("IO error: {0}")]
6 Io(#[from] std::io::Error),
7
8 #[error("YAML parse error: {0}")]
9 Yaml(#[from] serde_yaml::Error),
10
11 #[error("Invalid configuration: {0}")]
12 InvalidConfig(String),
13}