pub enum Error {
Show 15 variants
TypeAlreadyDefined(Ident),
ExpectedDynamicElement(Ident),
UnknownType(Ident),
UnknownElement(Ident),
UnknownAttribute(String),
UnknownNamespace(Namespace),
UnknownNamespacePrefix(NamespacePrefix),
InvalidValue(&'static str),
InvalidLocalName(RawByteStr),
GroupMissingRef,
AttributeGroupMissingRef,
InvalidAttributeReference(Box<AttributeType>),
InvalidFacet(Facet),
NoType,
ExpectedGroupType,
}
Expand description
error raised by the Interpreter
.
Variants§
TypeAlreadyDefined(Ident)
Type has already been defined.
Is raised if a new type with an already existing identifier is added
to the MetaTypes
structure.
ExpectedDynamicElement(Ident)
Expected dynamic element.
Expected the specified element to be dynamic because it is referenced as substitution group.
UnknownType(Ident)
Unknown type.
Is raised if a type identifier could not been resolved to the actual type information.
UnknownElement(Ident)
Unknown element.
Is raised if an element referenced inside the XML schema could not be resolved.
UnknownAttribute(String)
Unknown attribute.
Is raised if an attribute referenced inside the XML schema could not be resolved.
UnknownNamespace(Namespace)
Unknown namespace.
Is raised if the namespace URI could not be resolved.
UnknownNamespacePrefix(NamespacePrefix)
Unknown namespace prefix.
Is raised if the namespace prefix could not be resolved.
InvalidValue(&'static str)
Invalid value.
Is raised if a value from the XML schema is malformed or invalid.
InvalidLocalName(RawByteStr)
Invalid local name.
Is raised if conversion from a raw local name to a string has failed.
GroupMissingRef
Group is missing the ref
attribute
Is raised if a group reference in the XML schema is missing the ref
attribute.
AttributeGroupMissingRef
Attribute group is missing the ref
attribute
Is raised if a attribute group reference in the XML schema is missing the ref
attribute.
InvalidAttributeReference(Box<AttributeType>)
Invalid attribute reference.
The attribute specified in the schema is missing some information.
InvalidFacet(Facet)
Invalid facet.
Is raised if the content of a facet could not be interpreted correctly.
NoType
Unable to create type information.
Is raised if the interpreter was not able to generate a Type
from the
provided schema information.
ExpectedGroupType
The interpreter expected a group type (like xs:all
, xs:choice
or xs:sequence
).