ontocore_refactor/error.rs
1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum RefactorError {
5 #[error("entity not found: {0}")]
6 EntityNotFound(String),
7 #[error("unsupported format for write-back: {0}")]
8 UnsupportedFormat(String),
9 #[error("invalid refactor: {0}")]
10 Invalid(String),
11 #[error("io error: {0}")]
12 Io(#[from] std::io::Error),
13 #[error("{0}")]
14 Core(#[from] ontocore_core::OntoCoreError),
15}
16
17pub type Result<T> = std::result::Result<T, RefactorError>;