Enum EvaluationError
#[non_exhaustive]pub enum EvaluationError {
Show 13 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,
}
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
Trait Implementationsยง
ยงimpl Debug for EvaluationError
impl Debug for EvaluationError
ยงimpl Display for EvaluationError
impl Display for EvaluationError
ยงimpl Error for EvaluationError
impl Error for EvaluationError
ยง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<EvaluationError> for QueryError
impl From<EvaluationError> for QueryError
Sourceยงfn from(e: EvaluationError) -> Self
fn from(e: EvaluationError) -> Self
Converts to this type from the input type.
ยงimpl From<Infallible> for EvaluationError
impl From<Infallible> for EvaluationError
ยงfn from(error: Infallible) -> EvaluationError
fn from(error: Infallible) -> EvaluationError
Converts to this type from the input type.
ยงimpl From<QueryEvaluationError> for EvaluationError
impl From<QueryEvaluationError> for EvaluationError
ยงfn from(error: QueryEvaluationError) -> EvaluationError
fn from(error: QueryEvaluationError) -> EvaluationError
Converts to this type from the input type.
ยงimpl From<QueryResultsParseError> for EvaluationError
impl From<QueryResultsParseError> for EvaluationError
ยงfn from(source: QueryResultsParseError) -> EvaluationError
fn from(source: QueryResultsParseError) -> EvaluationError
Converts to this type from the input type.
ยงimpl From<RdfParseError> for EvaluationError
impl From<RdfParseError> for EvaluationError
ยงfn from(source: RdfParseError) -> EvaluationError
fn from(source: RdfParseError) -> EvaluationError
Converts to this type from the input type.
ยงimpl From<SparqlSyntaxError> for EvaluationError
impl From<SparqlSyntaxError> for EvaluationError
ยงfn from(source: SparqlSyntaxError) -> EvaluationError
fn from(source: SparqlSyntaxError) -> EvaluationError
Converts to this type from the input type.
ยงimpl From<StorageError> for EvaluationError
impl From<StorageError> for EvaluationError
ยงfn from(source: StorageError) -> EvaluationError
fn from(source: StorageError) -> EvaluationError
Converts to this type from the input type.
Auto Trait Implementationsยง
impl Freeze for EvaluationError
impl !RefUnwindSafe for EvaluationError
impl Send for EvaluationError
impl Sync for EvaluationError
impl Unpin for EvaluationError
impl !UnwindSafe for EvaluationError
Blanket Implementationsยง
ยงimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
ยงtype ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
ยงfn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
ยงimpl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
ยงfn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
ยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
ยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.ยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.ยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
โs vtable from &Trait
โs.ยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
โs vtable from &mut Trait
โs.ยงimpl<T> DowncastSend for T
impl<T> DowncastSend for T
ยงimpl<T> DowncastSync for T
impl<T> DowncastSync for T
ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
ยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
ยงimpl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
ยงtype Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
ยงfn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace 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ยงimpl<T> Pointable for T
impl<T> Pointable for T
ยงimpl<T> Pointee for T
impl<T> Pointee for T
ยงimpl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
ยงimpl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
ยงfn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.