Type Alias InterpreterError

Source
pub type InterpreterError = Error;
Expand description

Type alias for interpreter::Error.

Aliased Type§

enum InterpreterError {
Show 14 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>), InternalError, ExpectedGroupType,
}

Variants§

§

TypeAlreadyDefined(Ident)

Type has already been defined.

Is raised if a new type with an already existing identifier is added to the Types 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.

§

InternalError

Internal error.

IS raised if an internal error occurred. Check the log output for more details.

§

ExpectedGroupType

The interpreter expected a group type (like xs:all, xs:choice or xs:sequence).