pub enum Error {
Show 25 variants
Tokenizer {
representation: String,
source: Box<dyn Error>,
},
ParserExpected {
rule_fn: String,
expecting: String,
},
ParserUnexpected {
rule_fn: String,
given: String,
expecting: Vec<String>,
},
ParserUnreachable {
rule_fn: String,
given: String,
},
InvalidFromStr {
value: String,
name: String,
},
InvalidLiteralTypeCooercion {
from_type: String,
to_type: String,
},
HexDecoder {
value: String,
index: usize,
},
InvalidBlankNodeName {
name: String,
},
EmptyQName,
InvalidQName {
name: String,
},
ProviderMismatch {
lhs: String,
rhs: String,
},
InvalidMatch,
AbsoluteIriExpected {
uri: String,
},
InvalidState,
RdfStarNotSupported {
representation: String,
},
FormulaeNotSupported {
representation: String,
},
QueryResultsFormat {
representation: String,
},
Borrow(BorrowError),
Io(Error),
Iri(Error),
LanguageTag(ParseError),
Name(NameParseError),
Utf8(FromUtf8Error),
Base64Decoder(DecodeError),
Unknown(String),
}Expand description
The Error type for this crate.
Variants§
Tokenizer
This signals a parser tokenizer error.
ParserExpected
This signals a parser error where some expected value was not found.
ParserUnexpected
This signals a parser error where some unexpected value was not found.
ParserUnreachable
InvalidFromStr
The String value provided is not a valid value for it’s type.
InvalidLiteralTypeCooercion
Could not coerce from from_type to to_type.
HexDecoder
Could not decode a supposedly hex-encoded string.
InvalidBlankNodeName
The String value provided is not a valid Blank Node name.
EmptyQName
A QName may not have an empty name part.
InvalidQName
The String value provided is not a valid QName.
ProviderMismatch
Values from these different providers cannot be combined.
InvalidMatch
The match combination is not valid.
AbsoluteIriExpected
An Absolute IRI was expected.
InvalidState
Some model element was in an invalid state for the requested operation.
RdfStarNotSupported
Statements as objects, from RDF*, are not supported by this representation.
FormulaeNotSupported
Cited model.formulae, from N3, are not supported by this representation.
QueryResultsFormat
Could not read or write query results in this representation.
Borrow(BorrowError)
An error occurred borrowing from a standard cell type.
Io(Error)
An error in the standard I/O library.
Iri(Error)
An error parsing IRI strings.
LanguageTag(ParseError)
An eror parsing language-tag strings.
Name(NameParseError)
An error parsing Name strings.
Utf8(FromUtf8Error)
An error occurred converting to UTF-8 text.
Base64Decoder(DecodeError)
An error occurred decoding base-64 data.
Unknown(String)
An unknown error occurred.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<BorrowError> for Error
impl From<BorrowError> for Error
Source§fn from(source: BorrowError) -> Self
fn from(source: BorrowError) -> Self
Source§impl From<DecodeError> for Error
Available on crate feature binary_types only.
impl From<DecodeError> for Error
binary_types only.