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

# type StructuralBadDocumentError

source code

                  object --+
                           |
    exceptions.BaseException --+
                               |
            exceptions.Exception --+
                                   |
                       PyXBException --+
                                       |
                        BadDocumentError --+
                                           |
                                          StructuralBadDocumentError

Known Subclasses:
  - UnrecognizedDOMRootNodeError

Raised when processing document and the content model is not satisfied.

Instance Methods | [hide private]
__init__(self, *args, **kw) Raised when processing document and the content model is not satisfied. | source code
Inherited from `PyXBException` (private): `_str_from_unicode` Inherited from `exceptions.Exception`: `__new__` Inherited from `exceptions.BaseException`: `__delattr__`, `__getattribute__`, `__getitem__`, `__getslice__`, `__reduce__`, `__repr__`, `__setattr__`, `__setstate__`, `__str__`, `__unicode__`

Class Variables | [hide private]
Inherited from `PyXBException` (private): `_args`, `_kw`

Properties | [hide private]
| element_use The pyxb.binding.content.ElementDeclaration instance to which the content should conform, if available.
| container The pyxb.binding.basis.complexTypeDefinition instance to which the content would belong, if available.
| content The value which could not be reconciled with the content model.
Inherited from `exceptions.BaseException`: `args`, `message`

Method Details | [hide private]

### __init__(self, *args, **kw) (Constructor) | source code
Raised when processing document and the content model is not satisfied. Parameters: `content` - The value that could not be reconciled with the content model `container` - Optional binding instance into which the content was to be assigned `element_use` - Optional reference to an element use identifying the element to which the value was to be reconciled Overrides: exceptions.BaseException.__init__

Property Details | [hide private]

### element_use The pyxb.binding.content.ElementDeclaration instance to which the content should conform, if available.

### container The pyxb.binding.basis.complexTypeDefinition instance to which the content would belong, if available.

### content The value which could not be reconciled with the content model.