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

# type IncrementalElementContentError

source code

                  object --+
                           |
    exceptions.BaseException --+
                               |
            exceptions.Exception --+
                                   |
                       PyXBException --+
                                       |
                         ValidationError --+
                                           |
                  ComplexTypeValidationError --+
                                               |
                          ContentValidationError --+
                                                   |
                                                  IncrementalElementContentError

Known Subclasses:
  - UnrecognizedContentError

Element or element-like content could not be validly associated with an sub-element in the content model.

This exception occurs when content is added to an element during incremental validation, such as when positional arguments are used in a constructor or material is appended either explicitly or through parsing a DOM instance.

Instance Methods | [hide private]
__init__(self, instance, automaton_configuration, value, location=None) Create an exception indicating a PyXB-related problem. | source code
Inherited from `ValidationError`: `details` 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]
| instance = `None` The binding for which the value could not be associated with an element.
| automaton_configuration = `None` The pyxb.binding.content.AutomatonConfiguration representing the current state of the instance content.
| value = `None` The value that could not be associated with allowable content.
Inherited from `ValidationError`: `location` Inherited from `PyXBException` (private): `_args`, `_kw`

Properties | [hide private]
Inherited from `exceptions.BaseException`: `args`, `message`

Method Details | [hide private]

### __init__(self, instance, automaton_configuration, value, location=None) (Constructor) | source code
Create an exception indicating a PyXB-related problem. If no args are present, a default argument is taken from the `message` keyword. Parameters: `instance` - the value for the instance attribute. `automaton_configuration` - the value for the automaton_configuration attribute. `value` - the value for the value attribute. `location` - the value for the location attribute. Overrides: exceptions.BaseException.__init__