nomograph_core/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum CoreError {
5 #[error("parse error: {0}")]
6 Parse(String),
7 #[error("index error: {0}")]
8 Index(String),
9 #[error("io error: {0}")]
10 Io(#[from] std::io::Error),
11 #[error("serialization error: {0}")]
12 Serialization(#[from] serde_json::Error),
13}
14
15pub type IndexError = CoreError;