ontocore_obo/error.rs
1use thiserror::Error;
2
3pub type Result<T> = std::result::Result<T, OboError>;
4
5#[derive(Debug, Error)]
6pub enum OboError {
7 #[error("OBO parse error: {0}")]
8 Parse(String),
9 #[error("term not found: {0}")]
10 TermNotFound(String),
11 #[error("invalid patch: {0}")]
12 PatchInvalid(String),
13 #[error(transparent)]
14 Core(#[from] ontocore_core::OntoCoreError),
15 #[error("IO error: {0}")]
16 Io(String),
17}