pub enum ApiError {
Show 13 variants
UnknownRepository(String),
MissingQuery,
UnsupportedContentType,
NotAcceptable(String),
InvalidArgument(String),
Compute(ComputeError),
Serialize(String),
IngestNotConfigured,
IngestFileNotFound(String),
Io(Error),
ClusterUnavailable,
QueryLibraryNotConfigured,
QueryLibrary(QueryLibraryError),
}Expand description
Failure translating an RDF4J request into a compute call or wire format.
Variants§
UnknownRepository(String)
Repository id is not registered on this server.
MissingQuery
Request is missing a required SPARQL query string.
UnsupportedContentType
Request body / content-type is not accepted for SPARQL Protocol.
NotAcceptable(String)
The Accept header lists only response formats this server cannot
produce (no wildcard fallback matched).
InvalidArgument(String)
A request argument could not be decoded or has an unsupported value.
Compute(ComputeError)
Compute rejected or failed the operation.
Serialize(String)
SPARQL Results serialization failed.
IngestNotConfigured
HTTP ingest is disabled (no --ingest-dir / test without a staging dir).
IngestFileNotFound(String)
Named ingest file is missing from the staging directory.
Io(Error)
Filesystem I/O in the ingest directory.
This compute has no cluster config (cannot assemble a snapshot).
QueryLibraryNotConfigured
The query library is disabled in this process (no --queries-dir, no
inline demo queries) — same convention as ingest (501 = no ingest
directory) and cluster (501 = no cluster view).
QueryLibrary(QueryLibraryError)
A configured query library failed to resolve for this repository:
the directory is missing (404) or a sidecar / directory read
failed (500).
Trait Implementations§
Source§impl Error for ApiError
impl Error for ApiError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ComputeError> for ApiError
impl From<ComputeError> for ApiError
Source§fn from(source: ComputeError) -> Self
fn from(source: ComputeError) -> Self
Source§impl From<QueryLibraryError> for ApiError
impl From<QueryLibraryError> for ApiError
Source§fn from(source: QueryLibraryError) -> Self
fn from(source: QueryLibraryError) -> Self
Auto Trait Implementations§
impl Freeze for ApiError
impl !RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnsafeUnpin for ApiError
impl !UnwindSafe for ApiError
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
§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<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].