pub enum InMemoryGraphError {
Show 18 variants
QueryResultError {
msg: String,
},
ExtendingQuerySolutionsError {
query: String,
error: String,
},
ParsingQueryError {
msg: String,
},
RunningQueryError {
query: String,
msg: String,
},
TurtleParseError {
source_name: String,
error: String,
},
BaseParseError {
str: String,
error: String,
},
BlankNodeId {
msg: String,
},
ReadingPathError {
path_name: String,
error: Error,
},
ErrorReadingTurtle {
err: TurtleParseError,
},
IOError {
err: Error,
},
TurtleError {
data: String,
turtle_error: TurtleParseError,
},
RDFXMLError {
data: String,
error: String,
},
NTriplesError {
data: String,
error: String,
},
NQuadsError {
data: String,
error: String,
},
JsonLDError {
data: String,
error: String,
},
IriParseError {
err: IriParseError,
},
IriSError {
err: IriSError,
},
PrefixMapError {
err: PrefixMapError,
},
}Expand description
Represents all possible errors that can occur when working with in-memory RDF graphs.
Variants§
QueryResultError
ExtendingQuerySolutionsError
Error extending query solutions with additional data.
§Fields
query: The query string being executederror: Detailed description of the extension failure
ParsingQueryError
RunningQueryError
Error executing a query.
§Fields
query: The query string that failed to executemsg: Detailed description of the execution failure
TurtleParseError
Error parsing Turtle RDF data.
§Fields
source_name: The name or path of the data sourceerror: Detailed description of the parsing failure
BaseParseError
Error parsing a base IRI.
§Fields
str: The IRI string that failed to parseerror: Detailed description of the parsing failure
BlankNodeId
Error generating a blank node identifier.
§Fields
msg: Detailed description of the blank node generation failure
ReadingPathError
Error reading data from a file path.
§Fields
path_name: The path that failed to be readerror: The underlying I/O error
ErrorReadingTurtle
Fields
§
err: TurtleParseErrorIOError
TurtleError
Error parsing Turtle data with context.
§Fields
data: The Turtle data that failed to parseturtle_error: The underlying Turtle parsing error
RDFXMLError
Error parsing RDF/XML data.
§Fields
data: The RDF/XML data that failed to parseerror: Detailed description of the parsing failure
NTriplesError
Error parsing N-Triples data.
§Fields
data: The N-Triples data that failed to parseerror: Detailed description of the parsing failure
NQuadsError
Error parsing N-Quads data.
§Fields
data: The N-Quads data that failed to parseerror: Detailed description of the parsing failure
JsonLDError
Error parsing JSON-LD data.
§Fields
data: The JSON-LD data that failed to parseerror: Detailed description of the parsing failure
IriParseError
Fields
§
err: IriParseErrorIriSError
PrefixMapError
Fields
§
err: PrefixMapErrorTrait Implementations§
Source§impl Debug for InMemoryGraphError
impl Debug for InMemoryGraphError
Source§impl Display for InMemoryGraphError
impl Display for InMemoryGraphError
Source§impl Error for InMemoryGraphError
impl Error for InMemoryGraphError
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<Error> for InMemoryGraphError
impl From<Error> for InMemoryGraphError
Source§impl From<IriParseError> for InMemoryGraphError
impl From<IriParseError> for InMemoryGraphError
Source§fn from(source: IriParseError) -> Self
fn from(source: IriParseError) -> Self
Converts to this type from the input type.
Source§impl From<IriSError> for InMemoryGraphError
impl From<IriSError> for InMemoryGraphError
Source§impl From<PrefixMapError> for InMemoryGraphError
impl From<PrefixMapError> for InMemoryGraphError
Source§fn from(source: PrefixMapError) -> Self
fn from(source: PrefixMapError) -> Self
Converts to this type from the input type.
Source§impl From<TurtleParseError> for InMemoryGraphError
impl From<TurtleParseError> for InMemoryGraphError
Source§fn from(source: TurtleParseError) -> Self
fn from(source: TurtleParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InMemoryGraphError
impl !RefUnwindSafe for InMemoryGraphError
impl Send for InMemoryGraphError
impl Sync for InMemoryGraphError
impl Unpin for InMemoryGraphError
impl UnsafeUnpin for InMemoryGraphError
impl !UnwindSafe for InMemoryGraphError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.