ontocore-refactor 0.14.0

Workspace refactoring for OntoCore (ontocore-*) (rename, migrate, move, extract)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Debug, Error)]
pub enum RefactorError {
    #[error("entity not found: {0}")]
    EntityNotFound(String),
    #[error("unsupported format for write-back: {0}")]
    UnsupportedFormat(String),
    #[error("invalid refactor: {0}")]
    Invalid(String),
    #[error("io error: {0}")]
    Io(#[from] std::io::Error),
    #[error("{0}")]
    Core(#[from] ontocore_core::OntoCoreError),
}

pub type Result<T> = std::result::Result<T, RefactorError>;