Skip to main content

polyfont_core/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum PolyfontError {
5    #[error("Configuration error: {0}")]
6    Config(String),
7
8    #[error("Font not found: {0}")]
9    FontNotFound(String),
10
11    #[error("Invalid scope pattern: {0}")]
12    InvalidScope(String),
13
14    #[error("IO error: {0}")]
15    Io(#[from] std::io::Error),
16
17    #[error("Parse error: {0}")]
18    Parse(String),
19}