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.
  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.
  BadTypeValueError
Raised when a value in an XML attribute does not conform to the simple type.
  NotInNamespaceError
Raised when a name is referenced that is not defined in the appropriate namespace.
  BadPropertyError
Raised when a schema component property is accessed on a component instance that does not define that property.
  BadDocumentError
Raised when processing document content and an error is encountered.
  StructuralBadDocumentError
Raised when processing document and the content model is not satisfied.
  AbstractElementError
Raised when attempting to construct an element that is abstract.
  UnrecognizedContentError
Raised when processing document and an element does not match the content model.
  UnrecognizedElementError
Raised when creating an instance from a document with an unrecognized root element.
  MissingElementError
Content requires an element that is not present.
  UnexpectedElementError
More instances of an element are present than permitted by the content model.
  ExtraContentError
Raised when processing document and there is more material in an element content than expected.
  ContentInNilElementError
Raised when an element that is marked to be nil has content.
  MissingContentError
Raised when processing document and expected content is not present.
  NotAnElementError
Raised when processing document and a tag that is a type but not an element is encountered.
  UnrecognizedAttributeError
Raised when an attribute is found that is not sanctioned by the content model.
  ValidationError
Raised when something in the infoset fails to satisfy a content model or attribute requirement.
  AttributeValidationError
Raised when an attribute requirement is not satisfied.
  ProhibitedAttributeError
Raised when an attribute that is prohibited is provided in an element.
  MissingAttributeError
Raised when an attribute that is required is missing in an element.
  AttributeChangeError
Raised when an attribute with a fixed value constraint is set to a different value.
  AbstractInstantiationError
Raised when somebody tries to instantiate an abstract complex type.
  DOMGenerationError
Raised when converting binding to DOM and something goes wrong.
  NoNillableSupportError
Raised when checking _isNil on a type that does not support nillable.
  BindingValidationError
Raised when the content of a binding object is not consistent with its content model
  UnexpectedNonElementContentError
Raised when an element is given non-element content but may not contain such.
  NoContentModel
Raised when an operation is attempted that requires a content model, but the complex type has empty or simple content.
  BindingError
Raised when the bindings are mis-used.
  NotSimpleContentError
Raised when an operation that requires simple content is invoked on a complex type that does not have simple content.
  NotComplexContentError
Raised when an operation is attempted that requires a content model, but the complex type has empty or simple content.
  PyXBError
Base class for exceptions that indicate a problem that the user probably can't fix.
  UsageError
Raised when the code detects arguments to a public operation.
  LogicError
Raised when the code detects an implementation problem.
  IncompleteImplementationError
Raised when a code branch is taken that has not yet been implemented.
Variables [hide private]
  __package__ = 'pyxb'