Skip to main content

argyph_core/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum CoreError {
5    #[error("store error: {0}")]
6    Store(#[from] argyph_store::StoreError),
7
8    #[error("I/O error: {0}")]
9    Io(#[from] std::io::Error),
10
11    #[error("parse error: {0}")]
12    Parse(#[from] argyph_parse::ParseError),
13
14    #[error("graph error: {0}")]
15    Graph(#[from] argyph_graph::GraphError),
16
17    #[error("embedding error: {0}")]
18    Embed(String),
19
20    #[error("{0}")]
21    Other(String),
22}
23
24pub type Result<T> = std::result::Result<T, CoreError>;