Files
tools/publish/src/error.rs
T

45 lines
1.1 KiB
Rust
Raw Normal View History

2026-06-08 19:33:49 -04:00
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),
2026-08-08 23:50:04 -04:00
2026-06-23 21:55:52 -04:00
#[error(transparent)]
Storage(#[from] oxigraph::store::StorageError),
2026-06-08 19:33:49 -04:00
#[error(transparent)]
2026-08-13 09:44:46 -04:00
ParseIri(#[from] oxigraph::model::IriParseError),
#[error(transparent)]
ParseUrl(#[from] url::ParseError),
2026-06-08 19:33:49 -04:00
#[error(transparent)]
RdfSyntax(#[from] oxigraph::io::RdfSyntaxError),
#[error(transparent)]
ParseInt(#[from] std::num::ParseIntError),
2026-08-12 14:11:47 -04:00
#[error(transparent)]
Graph(#[from] gl_graph::Error),
2026-06-08 19:33:49 -04:00
#[error(transparent)]
Search(#[from] gl_search::SearchError),
2026-08-08 23:50:04 -04:00
2026-06-29 15:20:02 -04:00
#[error(transparent)]
QueryEvaluation(#[from] oxigraph::sparql::QueryEvaluationError),
2026-08-08 23:50:04 -04:00
2026-06-30 19:25:15 -04:00
#[error(transparent)]
UpdateEvaluation(#[from] oxigraph::sparql::UpdateEvaluationError),
2026-08-08 23:50:04 -04:00
2026-06-30 19:25:15 -04:00
#[error(transparent)]
SparqlSyntax(#[from] oxigraph::sparql::SparqlSyntaxError),
2026-07-20 23:53:33 -04:00
#[error(transparent)]
Join(#[from] tokio::task::JoinError),
2026-08-13 09:44:46 -04:00
#[error(transparent)]
TonicTransport(#[from] tonic::transport::Error),
2026-08-12 14:11:47 -04:00
}