pub enum Error {
InvalidRdf(String),
Parse(ParseError),
Serialize(String),
SparqlParse(String),
SparqlEvaluation(String),
Storage(String),
Unsupported(String),
Io(Error),
OpenStore {
path: PathBuf,
message: String,
},
}Expand description
Errors produced by Oxiland.
The variant set is closed for 1.0 intent (ADR-020). New categories require an
ADR. Unsupported Redland factories and options surface as Error::Unsupported
rather than silent success.
Variants§
InvalidRdf(String)
An RDF term or IRI was invalid.
Parse(ParseError)
An RDF document could not be parsed.
Serialize(String)
An RDF document could not be serialized.
SparqlParse(String)
A SPARQL query could not be parsed.
SparqlEvaluation(String)
A SPARQL query could not be evaluated.
Storage(String)
The storage backend failed.
Unsupported(String)
A requested Redland-compatible feature is unsupported.
Io(Error)
A filesystem or byte-stream I/O failure.
OpenStore
A filesystem-backed store could not be opened.
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<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> 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