pub enum ParseError {
Show 67 variants
NomError {
err: Box<LocatedParseError>,
},
NodeSelectorNomError {
err: Box<LocatedParseError>,
str: String,
},
IOError {
err: Error,
},
PrefixMapError {
err: PrefixMapError,
},
Custom {
msg: String,
},
IRISError {
err: IriSError,
},
DerefError {
err: DerefError,
},
SyntaxError(String),
MissingInput(String),
ExpectedToken(String),
ExpectedShapeOrRef,
ExpectedShapeExprDecl,
ExclusionPlus,
Exclusion,
ValueSet,
ValueSetValue,
ValueSetFacets,
LitNodeConstraint,
ShapeExprOrExternal,
NonLitNodeConstraintOptShapeOrRef,
NonLitInlineNodeConstraintOptShapeOrRef,
ExpectedInlineShapeAtom,
DatatypeFacets,
ExpectedPrefixedName,
Extension,
ExpectedStart,
ExpectedCardinality,
ExpectedTripleConstraint,
ExpectedLiteralRange,
ExpectedPrefixDecl,
ExpectedRepeatRange,
ExpectedRestRepeatRange,
ExpectedShapeExpr,
ExpectedInlineShapeExpr,
ExpectedIriOrLiteral,
LanguageRange,
Literal,
ShapeAtom,
ExpectedAnnotation,
TripleExpression,
StringLiteralQuote,
RDFLiteral,
BracketedTripleExpr,
OneOfTripleExpr,
Code,
CodeDeclaration,
UnaryTripleExpr,
Include,
ExpectedBaseDecl,
ExpectedImportDecl,
ExpectedStringLiteral,
ExpectedShapeDefinition,
ExpectedEXTRAPropertySet,
ExpectedClosed,
ExpectedQualifier,
ExpectedQualifiers,
ParseIntError {
str: String,
err: ParseIntError,
},
ParseFloatError {
str: String,
err: ParseFloatError,
},
NumericLiteral,
IntegerLiteral,
Integer,
ExpectedShapeSpec,
ExpectedStatement,
ExpectedShapeMapAssociation,
ExpectedNodeSpec,
RegexFailed {
re: String,
str: String,
},
Utf8Error {
error: String,
},
}
Variants§
NomError
Fields
§
err: Box<LocatedParseError>
NodeSelectorNomError
IOError
PrefixMapError
Fields
§
err: PrefixMapError
Custom
IRISError
DerefError
Fields
§
err: DerefError
SyntaxError(String)
MissingInput(String)
ExpectedToken(String)
ExpectedShapeOrRef
ExpectedShapeExprDecl
ExclusionPlus
Exclusion
ValueSet
ValueSetValue
ValueSetFacets
LitNodeConstraint
ShapeExprOrExternal
NonLitNodeConstraintOptShapeOrRef
NonLitInlineNodeConstraintOptShapeOrRef
ExpectedInlineShapeAtom
DatatypeFacets
ExpectedPrefixedName
Extension
ExpectedStart
ExpectedCardinality
ExpectedTripleConstraint
ExpectedLiteralRange
ExpectedPrefixDecl
ExpectedRepeatRange
ExpectedRestRepeatRange
ExpectedShapeExpr
ExpectedInlineShapeExpr
ExpectedIriOrLiteral
LanguageRange
Literal
ShapeAtom
ExpectedAnnotation
TripleExpression
StringLiteralQuote
RDFLiteral
BracketedTripleExpr
OneOfTripleExpr
Code
CodeDeclaration
UnaryTripleExpr
Include
ExpectedBaseDecl
ExpectedImportDecl
ExpectedStringLiteral
ExpectedShapeDefinition
ExpectedEXTRAPropertySet
ExpectedClosed
ExpectedQualifier
ExpectedQualifiers
ParseIntError
ParseFloatError
NumericLiteral
IntegerLiteral
Integer
ExpectedShapeSpec
ExpectedStatement
ExpectedShapeMapAssociation
ExpectedNodeSpec
RegexFailed
Utf8Error
Implementations§
Source§impl ParseError
impl ParseError
Sourcepub fn at(self, position: LocatedSpan<&'_ str>) -> LocatedParseError
pub fn at(self, position: LocatedSpan<&'_ str>) -> LocatedParseError
Locate this error by adding a position.
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl Error for ParseError
impl Error for ParseError
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<DerefError> for ParseError
impl From<DerefError> for ParseError
Source§fn from(source: DerefError) -> Self
fn from(source: DerefError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ParseError
impl From<Error> for ParseError
Source§impl From<IriSError> for ParseError
impl From<IriSError> for ParseError
Source§impl From<PrefixMapError> for ParseError
impl From<PrefixMapError> for ParseError
Source§fn from(source: PrefixMapError) -> Self
fn from(source: PrefixMapError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseError
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
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