pub enum SchemaIRError {
Show 49 variants
PatternNodeNotLiteral {
node: String,
regex: String,
flags: Option<String>,
},
InvalidRegex {
regex: String,
},
PatternError {
regex: String,
flags: String,
lexical_form: String,
},
LangTagError {
lang: String,
err: String,
},
Str2IriError {
str: String,
},
IriParseError {
str: String,
err: IriSError,
},
ImportIriError {
error: String,
},
SchemaJsonError {
source: Box<SchemaJsonError>,
},
DuplicatedTripleExprLabel {
label: Box<TripleExprLabel>,
},
MinLessZero {
min: i32,
},
MaxIncorrect {
max: i32,
},
NodeKindIri {
node: Node,
},
NodeKindBNode {
node: Node,
},
NodeKindLiteral {
node: Node,
},
NodeKindNonLiteral {
node: Node,
},
DatatypeDontMatch {
found: IriRef,
expected: IriS,
lexical_form: String,
},
FindingContentFromIrisError {
errors: Box<Vec<Box<SchemaIRError>>>,
},
CandidatesError {
iri: IriS,
error: String,
},
WrongDatatypeLiteralMatch {
lexical_form: String,
datatype: IriRef,
error: String,
expected: IriS,
},
DatatypeNoLiteral {
expected: Box<IriS>,
node: Box<Node>,
},
DatatypeDontMatchString {
expected: IriRef,
lexical_form: String,
},
DatatypeDontMatchInteger {
expected: IriRef,
lexical_form: String,
},
DatatypeDontMatchDecimal {
expected: IriRef,
lexical_form: String,
},
DatatypeDontMatchFloat {
expected: IriRef,
lexical_form: String,
},
DatatypeDontMatchLong {
expected: IriRef,
lexical_form: String,
},
DatatypeDontMatchDouble {
expected: IriRef,
lexical_form: String,
},
DatatypeDontMatchLangString {
lexical_form: String,
lang: Box<Lang>,
},
LengthError {
expected: usize,
found: usize,
node: String,
},
MinLengthError {
expected: usize,
found: usize,
node: String,
},
MaxLengthError {
expected: usize,
found: usize,
node: String,
},
MinInclusiveError {
expected: NumericLiteral,
found: NumericLiteral,
node: String,
},
TotalDigitsError {
expected: usize,
found: NumericLiteral,
node: String,
},
FractionDigitsError {
expected: usize,
found: NumericLiteral,
node: String,
},
MinExclusiveError {
expected: NumericLiteral,
found: NumericLiteral,
node: String,
},
MaxExclusiveError {
expected: NumericLiteral,
found: NumericLiteral,
node: String,
},
MaxInclusiveError {
expected: NumericLiteral,
found: NumericLiteral,
node: String,
},
NonNumeric {
node: String,
},
ShapeLabelNotFound {
shape_label: ShapeLabel,
},
Todo {
msg: String,
},
IriRef2ShapeLabelError {
prefix: String,
local: String,
},
PrefixedNotFound {
prefix: String,
local: String,
err: Box<PrefixMapError>,
},
LabelNotFound {
shape_label: ShapeLabel,
},
Internal {
msg: String,
},
DereferencingIri {
iri: IriS,
error: String,
},
ShExCError {
error: String,
iri: IriS,
},
ShExJError {
error: String,
iri: IriS,
},
SchemaFromIriRotatingFormats {
iri: IriS,
errors: Box<Vec<(ShExFormat, Box<SchemaIRError>)>>,
},
CnvIriRefError {
prefix: String,
local: String,
error: String,
},
CheckLiteralDatatypeCnvIriRef2IriError {
iri_ref: IriRef,
error: String,
},
}Variants§
PatternNodeNotLiteral
InvalidRegex
PatternError
LangTagError
Str2IriError
IriParseError
ImportIriError
SchemaJsonError
Fields
§
source: Box<SchemaJsonError>DuplicatedTripleExprLabel
Fields
§
label: Box<TripleExprLabel>MinLessZero
MaxIncorrect
NodeKindIri
NodeKindBNode
NodeKindLiteral
NodeKindNonLiteral
DatatypeDontMatch
FindingContentFromIrisError
Fields
§
errors: Box<Vec<Box<SchemaIRError>>>CandidatesError
WrongDatatypeLiteralMatch
DatatypeNoLiteral
DatatypeDontMatchString
DatatypeDontMatchInteger
DatatypeDontMatchDecimal
DatatypeDontMatchFloat
DatatypeDontMatchLong
DatatypeDontMatchDouble
DatatypeDontMatchLangString
LengthError
MinLengthError
MaxLengthError
MinInclusiveError
TotalDigitsError
FractionDigitsError
MinExclusiveError
MaxExclusiveError
MaxInclusiveError
NonNumeric
ShapeLabelNotFound
Fields
§
shape_label: ShapeLabelTodo
IriRef2ShapeLabelError
PrefixedNotFound
LabelNotFound
Fields
§
shape_label: ShapeLabelInternal
DereferencingIri
ShExCError
ShExJError
SchemaFromIriRotatingFormats
CnvIriRefError
CheckLiteralDatatypeCnvIriRef2IriError
Trait Implementations§
Source§impl Clone for SchemaIRError
impl Clone for SchemaIRError
Source§fn clone(&self) -> SchemaIRError
fn clone(&self) -> SchemaIRError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaIRError
impl Debug for SchemaIRError
Source§impl Display for SchemaIRError
impl Display for SchemaIRError
Source§impl Error for SchemaIRError
impl Error for SchemaIRError
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()
Auto Trait Implementations§
impl Freeze for SchemaIRError
impl RefUnwindSafe for SchemaIRError
impl Send for SchemaIRError
impl Sync for SchemaIRError
impl Unpin for SchemaIRError
impl UnwindSafe for SchemaIRError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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.