pub enum Error {
UnknownType(Ident),
ExpectedUnion(Ident),
ExpectedComplexChoice(Ident),
ExpectedComplexType(Ident),
MissingContentType(Ident),
ExpectedChoiceContent(Ident),
ExpectedUnboundContent(Ident),
UnexpectedContentType(Ident),
UnexpectedElementInContent(Ident),
Custom(String),
}
Expand description
Error that is raised by the Optimizer
.
Variants§
UnknownType(Ident)
Unknown type identifier.
Is raised if a specific identifier could not be resolved to it’s corresponding type information.
ExpectedUnion(Ident)
The type is not a union type.
Is raised if a type is expected to be a union, but it is not.
ExpectedComplexChoice(Ident)
The type is not a complex choice type.
Is raised if a type is expected to be a complex choice, but it is not.
ExpectedComplexType(Ident)
The type is not a complex type.
Is raised if a type is expected to be a complex type, but it is not.
MissingContentType(Ident)
The complex type is missing a content type.
Is raised if the content type of a complex type could not be resolved.
ExpectedChoiceContent(Ident)
The complex type is expected to have a choice content.
Is raised if the content type of a complex type it not a choice.
ExpectedUnboundContent(Ident)
The complex type is expected to have content with MaxOccurs::Unbounded
.
Is raised if the content of a complex type does nor have unbounded occurrence.
UnexpectedContentType(Ident)
The complex type has an unexpected content type.
Is raised if the content type of a complex type does not match the expectations.
UnexpectedElementInContent(Ident)
The complex type contains an unexpected element in it’s content type.
Is raised if any element of the content of a complex type does not match the expectations.
Custom(String)
Custom Error