pub enum Error {
Syntax(SparqlSyntaxError),
Parse(RdfParseError),
Backend(String),
Unsupported(String),
Collision(String),
Corrupted(String),
Evaluation(QueryEvaluationError),
Io(Error),
Other(String),
}Expand description
Errors raised by oxilite.
Variants§
Syntax(SparqlSyntaxError)
The SPARQL query or update could not be parsed.
Parse(RdfParseError)
An RDF document could not be parsed.
Backend(String)
The SQL backend failed.
Unsupported(String)
The operation needs something the compiler or backend cannot do.
Collision(String)
Two different terms hashed to the same id.
Corrupted(String)
The database content is not what oxilite expects.
Evaluation(QueryEvaluationError)
Evaluation by the fallback evaluator failed.
Io(Error)
I/O error while reading or writing RDF.
Other(String)
Other errors.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<QueryEvaluationError> for Error
impl From<QueryEvaluationError> for Error
Source§fn from(source: QueryEvaluationError) -> Self
fn from(source: QueryEvaluationError) -> Self
Converts to this type from the input type.
Source§impl From<RdfParseError> for Error
impl From<RdfParseError> for Error
Source§fn from(source: RdfParseError) -> Self
fn from(source: RdfParseError) -> Self
Converts to this type from the input type.
Source§impl From<SparqlSyntaxError> for Error
impl From<SparqlSyntaxError> for Error
Source§fn from(source: SparqlSyntaxError) -> Self
fn from(source: SparqlSyntaxError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more