pub enum LoaderError {
UnsupportedIri(Iri<MownStr<'static>>, String),
NotFound(Iri<MownStr<'static>>),
IoError(Iri<MownStr<'static>>, Error),
CantGuessSyntax(Iri<MownStr<'static>>),
ParseError(Iri<MownStr<'static>>, Box<dyn Error + Sync + Send>),
Other(Iri<MownStr<'static>>, Box<dyn Error + Sync + Send>),
}Expand description
An error raised by a Loader.
Variants§
UnsupportedIri(Iri<MownStr<'static>>, String)
The requested IRI is not supported by this loader
NotFound(Iri<MownStr<'static>>)
The requested IRI could not be found (e.g. 404)
IoError(Iri<MownStr<'static>>, Error)
An IO error was encountered while loading the content
CantGuessSyntax(Iri<MownStr<'static>>)
Can not guess the syntax of the resource
(some loaders, such as LocalLoader,
do not always have access to content-type metadata)
ParseError(Iri<MownStr<'static>>, Box<dyn Error + Sync + Send>)
An error was encountered while parsing the data into an RDF graph
Other(Iri<MownStr<'static>>, Box<dyn Error + Sync + Send>)
Another type of error occurred
Implementations§
Trait Implementations§
Source§impl Debug for LoaderError
impl Debug for LoaderError
Source§impl Display for LoaderError
impl Display for LoaderError
Source§impl Error for LoaderError
impl Error for LoaderError
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<E> From<LoaderError> for ResourceError<E>
impl<E> From<LoaderError> for ResourceError<E>
Source§fn from(value: LoaderError) -> ResourceError<E>
fn from(value: LoaderError) -> ResourceError<E>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoaderError
impl !RefUnwindSafe for LoaderError
impl Send for LoaderError
impl Sync for LoaderError
impl Unpin for LoaderError
impl UnsafeUnpin for LoaderError
impl !UnwindSafe for LoaderError
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> 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