pub enum RdfParseError {
Syntax(RdfSyntaxError),
Io(Error),
InvalidIri(String),
InvalidLiteral(String),
InvalidBlankNode(String),
InvalidDatatype(String),
InvalidLanguageTag(String),
UnsupportedFeature(String),
Internal(String),
}
Expand description
Parse error during RDF processing
Variants§
Syntax(RdfSyntaxError)
Syntax error in the RDF document
Io(Error)
I/O error during reading
InvalidIri(String)
Invalid IRI format
InvalidLiteral(String)
Invalid literal format
InvalidBlankNode(String)
Invalid blank node format
InvalidDatatype(String)
Invalid datatype
InvalidLanguageTag(String)
Invalid language tag
UnsupportedFeature(String)
Unsupported feature
Internal(String)
Internal processing error
Implementations§
Source§impl RdfParseError
impl RdfParseError
Sourcepub fn syntax_at(message: impl Into<String>, position: TextPosition) -> Self
pub fn syntax_at(message: impl Into<String>, position: TextPosition) -> Self
Create a syntax error with position
Sourcepub fn invalid_iri(iri: impl Into<String>) -> Self
pub fn invalid_iri(iri: impl Into<String>) -> Self
Create an invalid IRI error
Sourcepub fn invalid_literal(literal: impl Into<String>) -> Self
pub fn invalid_literal(literal: impl Into<String>) -> Self
Create an invalid literal error
Sourcepub fn unsupported(feature: impl Into<String>) -> Self
pub fn unsupported(feature: impl Into<String>) -> Self
Create an unsupported feature error
Trait Implementations§
Source§impl Debug for RdfParseError
impl Debug for RdfParseError
Source§impl Display for RdfParseError
impl Display for RdfParseError
Source§impl Error for RdfParseError
impl Error for RdfParseError
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 RdfParseError
impl From<Error> for RdfParseError
Source§impl From<LanguageTagParseError> for RdfParseError
impl From<LanguageTagParseError> for RdfParseError
Source§fn from(err: LanguageTagParseError) -> Self
fn from(err: LanguageTagParseError) -> Self
Converts to this type from the input type.
Source§impl From<OxirsError> for RdfParseError
impl From<OxirsError> for RdfParseError
Source§fn from(err: OxirsError) -> Self
fn from(err: OxirsError) -> Self
Converts to this type from the input type.
Source§impl From<RdfParseError> for FormatError
impl From<RdfParseError> for FormatError
Source§fn from(err: RdfParseError) -> Self
fn from(err: RdfParseError) -> Self
Converts to this type from the input type.
Source§impl From<RdfSyntaxError> for RdfParseError
impl From<RdfSyntaxError> for RdfParseError
Source§fn from(err: RdfSyntaxError) -> Self
fn from(err: RdfSyntaxError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RdfParseError
impl !RefUnwindSafe for RdfParseError
impl Send for RdfParseError
impl Sync for RdfParseError
impl Unpin for RdfParseError
impl !UnwindSafe for RdfParseError
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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.