Package pyxb :: Module exceptions_ |
[hide private]
[frames] | no frames]

# Module exceptions_

source code

Extensions of standard exceptions for PyXB events.

Yeah, I'd love this module to be named exceptions.py, but it can't because the standard library has one of those, and we need to reference it below.

Classes | [hide private]
PyXBException Base class for exceptions that indicate a problem that the user should fix.
PyXBVersionError Raised on import of a binding generated with a different version of PYXB
DOMGenerationError A non-validation error encountered converting bindings to DOM.
UnboundElementError An instance converting to DOM had no bound element.
SchemaValidationError Raised when the XML hierarchy does not appear to be valid for an XML schema.
NamespaceError Violation of some rule relevant to XML Namespaces
NamespaceArchiveError Problem related to namespace archives
SchemaUniquenessError Raised when somebody tries to create a schema component using a schema that has already been used in that namespace.
BindingGenerationError Raised when something goes wrong generating the binding classes
NamespaceUniquenessError Raised when an attempt is made to record multiple objects of the same name in the same namespace category.
NotInNamespaceError Raised when a name is referenced that is not defined in the appropriate namespace.
BadDocumentError Raised when processing document content and an error is encountered.
StructuralBadDocumentError Raised when processing document and the content model is not satisfied.
UnrecognizedDOMRootNodeError A root DOM node could not be resolved to a schema element
ValidationError Raised when something in the infoset fails to satisfy a content model or attribute requirement.
NonElementValidationError Raised when an element (or a value bound to an element) appears in context that does not permit an element.
ElementValidationError Raised when a validation requirement for an element is not satisfied.
AbstractElementError Attempt to create an instance of an abstract element.
ContentInNilInstanceError Raised when an element that is marked to be nil is assigned content.
NoNillableSupportError Raised when invoking _setIsNil on a type that does not support nillable.
ElementChangeError Attempt to change an element that has a fixed value constraint.
ComplexTypeValidationError Raised when a validation requirement for a complex type is not satisfied.
AbstractInstantiationError Attempt to create an instance of an abstract complex type.
AttributeOnSimpleTypeError Attempt made to set an attribute on an element with simple type.
ContentValidationError Violation of a complex type content model.
SimpleContentAbsentError An instance with simple content was not provided with a value.
ExtraSimpleContentError A complex type with simple content was provided too much content.
NonPluralAppendError Attempt to append to an element which does not accept multiple instances.
MixedContentError Non-element content added to a complex type instance that does not support mixed content.
UnprocessedKeywordContentError A complex type constructor was provided with keywords that could not be recognized.
IncrementalElementContentError Element or element-like content could not be validly associated with an sub-element in the content model.
UnrecognizedContentError Element or element-like content could not be validly associated with an sub-element in the content model.
BatchElementContentError Element/wildcard content cannot be reconciled with the required content model.
IncompleteElementContentError Validation of an instance failed to produce an accepting state.
UnprocessedElementContentError Validation of an instance produced an accepting state but left element material unconsumed.
InvalidPreferredElementContentError Use of a preferred element led to inability to generate a valid document
OrphanElementContentError An element expected to be used in content is not present in the instance.
SimpleTypeValueError Raised when a simple type value does not satisfy its constraints.
SimpleListValueError Raised when a list simple type contains a member that does not satisfy its constraints.
SimpleUnionValueError Raised when a union simple type contains a member that does not satisfy its constraints.
SimpleFacetValueError Raised when a simple type value does not satisfy a facet constraint.
SimplePluralValueError Raised when context requires a plural value.
AttributeValidationError Raised when an attribute requirement is not satisfied.
UnrecognizedAttributeError Attempt to reference an attribute not sanctioned by content model.
ProhibitedAttributeError Raised when an attribute that is prohibited is set or referenced in an element.
MissingAttributeError Raised when an attribute that is required is missing in an element.
AttributeChangeError Attempt to change an attribute that has a fixed value constraint.
BindingError Raised when the bindings are mis-used.
NotSimpleContentError An operation that requires simple content was invoked on a complex type instance that does not have simple content.
NotComplexContentError An operation that requires a content model was invoked on a complex type instance that has empty or simple content.
ReservedNameError Reserved name set in binding instance.
PyXBError Base class for exceptions that indicate a problem that the user probably can't fix.
UsageError Raised when the code detects user violation of an API.
LogicError Raised when the code detects an implementation problem.
IncompleteImplementationError Raised when required capability has not been implemented.

Variables | [hide private]
| __package__ = ``'``pyxb``'``