#[non_exhaustive]pub enum QueryEvaluationError {
Show 16 variants
Parsing(SparqlSyntaxError),
Storage(StorageError),
GraphParsing(RdfParseError),
ResultsParsing(QueryResultsParseError),
ResultsSerialization(Error),
Service(Box<dyn Error + Send + Sync>),
GraphAlreadyExists(NamedNode),
GraphDoesNotExist(NamedNode),
UnboundService,
UnsupportedService(NamedNode),
UnsupportedContentType(String),
ServiceDoesNotReturnSolutions,
NotAGraph,
Engine(DataFusionError),
NotImplemented(String),
InternalError(String),
}Expand description
A SPARQL evaluation error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Parsing(SparqlSyntaxError)
An error in SPARQL parsing.
Storage(StorageError)
An error from the storage.
GraphParsing(RdfParseError)
An error while parsing an external RDF file.
ResultsParsing(QueryResultsParseError)
An error while parsing an external result file (likely from a federated query).
ResultsSerialization(Error)
An error returned during results serialization.
Service(Box<dyn Error + Send + Sync>)
Error during SERVICE evaluation
GraphAlreadyExists(NamedNode)
Error when CREATE tries to create an already existing graph
GraphDoesNotExist(NamedNode)
Error when DROP or CLEAR tries to remove a not existing graph
UnboundService
The variable storing the SERVICE name is unbound
UnsupportedService(NamedNode)
The given SERVICE is not supported
UnsupportedContentType(String)
The given content media type returned from an HTTP response is not supported (SERVICE and LOAD)
ServiceDoesNotReturnSolutions
The SERVICE call has not returns solutions
NotAGraph
The results are not a RDF graph
Engine(DataFusionError)
NotImplemented(String)
InternalError(String)
Implementations§
Source§impl QueryEvaluationError
impl QueryEvaluationError
pub fn internal<T>(cause: String) -> Result<T, QueryEvaluationError>
Trait Implementations§
Source§impl Debug for QueryEvaluationError
impl Debug for QueryEvaluationError
Source§impl Display for QueryEvaluationError
impl Display for QueryEvaluationError
Source§impl Error for QueryEvaluationError
impl Error for QueryEvaluationError
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<DataFusionError> for QueryEvaluationError
impl From<DataFusionError> for QueryEvaluationError
Source§fn from(error: DataFusionError) -> QueryEvaluationError
fn from(error: DataFusionError) -> QueryEvaluationError
Converts to this type from the input type.
Source§impl From<Infallible> for QueryEvaluationError
impl From<Infallible> for QueryEvaluationError
Source§fn from(error: Infallible) -> QueryEvaluationError
fn from(error: Infallible) -> QueryEvaluationError
Converts to this type from the input type.
Source§impl From<QueryEvaluationError> for SerializerError
impl From<QueryEvaluationError> for SerializerError
Source§fn from(source: QueryEvaluationError) -> Self
fn from(source: QueryEvaluationError) -> Self
Converts to this type from the input type.
Source§impl From<QueryResultsParseError> for QueryEvaluationError
impl From<QueryResultsParseError> for QueryEvaluationError
Source§fn from(source: QueryResultsParseError) -> QueryEvaluationError
fn from(source: QueryResultsParseError) -> QueryEvaluationError
Converts to this type from the input type.
Source§impl From<RdfParseError> for QueryEvaluationError
impl From<RdfParseError> for QueryEvaluationError
Source§fn from(source: RdfParseError) -> QueryEvaluationError
fn from(source: RdfParseError) -> QueryEvaluationError
Converts to this type from the input type.
Source§impl From<SparqlEvaluationError> for QueryEvaluationError
impl From<SparqlEvaluationError> for QueryEvaluationError
Source§fn from(error: SparqlEvaluationError) -> QueryEvaluationError
fn from(error: SparqlEvaluationError) -> QueryEvaluationError
Converts to this type from the input type.
Source§impl From<SparqlSyntaxError> for QueryEvaluationError
impl From<SparqlSyntaxError> for QueryEvaluationError
Source§fn from(source: SparqlSyntaxError) -> QueryEvaluationError
fn from(source: SparqlSyntaxError) -> QueryEvaluationError
Converts to this type from the input type.
Source§impl From<StorageError> for QueryEvaluationError
impl From<StorageError> for QueryEvaluationError
Source§fn from(source: StorageError) -> QueryEvaluationError
fn from(source: StorageError) -> QueryEvaluationError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryEvaluationError
impl !RefUnwindSafe for QueryEvaluationError
impl Send for QueryEvaluationError
impl Sync for QueryEvaluationError
impl Unpin for QueryEvaluationError
impl !UnwindSafe for QueryEvaluationError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more