hjkl_theme/error.rs
1/// Errors produced by theme parsing and resolution.
2#[derive(Debug, thiserror::Error)]
3pub enum ThemeError {
4 #[error("io: {0}")]
5 Io(#[from] std::io::Error),
6 #[error("toml parse: {0}")]
7 Toml(#[from] toml::de::Error),
8 #[error("invalid hex color: {0:?}")]
9 BadHex(String),
10 #[error("unresolved palette ref: ${0}")]
11 UnresolvedPalette(String),
12 #[error("invalid modifier: {0:?}")]
13 BadModifier(String),
14}