Skip to main content

ontocore_core/
error.rs

1use thiserror::Error;
2
3pub type Result<T> = std::result::Result<T, OntoCoreError>;
4
5#[derive(Debug, Error)]
6pub enum OntoCoreError {
7    #[error("IO error: {0}")]
8    Io(#[from] std::io::Error),
9
10    #[error("scanner error: {0}")]
11    Scanner(String),
12
13    #[error("{0}")]
14    Other(String),
15}