Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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)]
|
||||
IriParse(#[from] oxigraph::model::IriParseError),
|
||||
|
||||
#[error(transparent)]
|
||||
RdfSyntax(#[from] oxigraph::io::RdfSyntaxError),
|
||||
|
||||
#[error(transparent)]
|
||||
ParseInt(#[from] std::num::ParseIntError),
|
||||
|
||||
#[error(transparent)]
|
||||
Search(#[from] gl_search::SearchError),
|
||||
}
|
||||
Reference in New Issue
Block a user