45 lines
1.1 KiB
Rust
45 lines
1.1 KiB
Rust
use thiserror::Error;
|
|
|
|
pub type Result<R> = std::result::Result<R, Error>;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub(crate) enum Error {
|
|
#[error(transparent)]
|
|
Io(#[from] std::io::Error),
|
|
|
|
#[error(transparent)]
|
|
Storage(#[from] oxigraph::store::StorageError),
|
|
|
|
#[error(transparent)]
|
|
ParseIri(#[from] oxigraph::model::IriParseError),
|
|
|
|
#[error(transparent)]
|
|
ParseUrl(#[from] url::ParseError),
|
|
|
|
#[error(transparent)]
|
|
RdfSyntax(#[from] oxigraph::io::RdfSyntaxError),
|
|
|
|
#[error(transparent)]
|
|
ParseInt(#[from] std::num::ParseIntError),
|
|
|
|
#[error(transparent)]
|
|
Graph(#[from] gl_graph::Error),
|
|
|
|
#[error(transparent)]
|
|
Search(#[from] gl_search::SearchError),
|
|
|
|
#[error(transparent)]
|
|
QueryEvaluation(#[from] oxigraph::sparql::QueryEvaluationError),
|
|
|
|
#[error(transparent)]
|
|
UpdateEvaluation(#[from] oxigraph::sparql::UpdateEvaluationError),
|
|
|
|
#[error(transparent)]
|
|
SparqlSyntax(#[from] oxigraph::sparql::SparqlSyntaxError),
|
|
|
|
#[error(transparent)]
|
|
Join(#[from] tokio::task::JoinError),
|
|
|
|
#[error(transparent)]
|
|
TonicTransport(#[from] tonic::transport::Error),
|
|
} |