limnifs_write/config/
error.rs1#![allow(clippy::module_name_repetitions)]
4
5use std::io;
6
7#[derive(Debug, thiserror::Error)]
9pub enum ConfigError {
10 #[error("I/O error reading config: {0}")]
12 Io(#[from] io::Error),
13
14 #[error("TOML parse error: {0}")]
16 Toml(#[from] toml::de::Error),
17
18 #[error("TOML serialise error: {0}")]
20 TomlSer(#[from] toml::ser::Error),
21
22 #[error("invalid value for {field}: {reason}")]
24 InvalidValue {
25 field: String,
27 reason: String,
29 },
30
31 #[error("duplicate categorizer name: {0}")]
33 DuplicateCategorizer(String),
34
35 #[error("unknown codec: {0}")]
37 UnknownCodec(String),
38}