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

# type UnrecognizedContentError

source code

                  object --+
                           |
    exceptions.BaseException --+
                               |
            exceptions.Exception --+
                                   |
                       PyXBException --+
                                       |
                         ValidationError --+
                                           |
                  ComplexTypeValidationError --+
                                               |
                          ContentValidationError --+
                                                   |
                      IncrementalElementContentError --+
                                                       |
                                                      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.

Instance Methods | [hide private]
__unicode__(self) | source code
__str__(self) str(x) | source code
details(self) Provide information describing why validation failed. | source code
Inherited from `IncrementalElementContentError`: `__init__` Inherited from `PyXBException` (private): `_str_from_unicode` Inherited from `exceptions.Exception`: `__new__` Inherited from `exceptions.BaseException`: `__delattr__`, `__getattribute__`, `__getitem__`, `__getslice__`, `__reduce__`, `__repr__`, `__setattr__`, `__setstate__`

Class Variables | [hide private]
Inherited from `IncrementalElementContentError`: `automaton_configuration`, `instance`, `value` Inherited from `ValidationError`: `location` Inherited from `PyXBException` (private): `_args`, `_kw`

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

Method Details | [hide private]

### __unicode__(self) | source code
Overrides: exceptions.BaseException.__unicode__

### __str__(self) (Informal representation operator) | source code
str(x) Overrides: exceptions.BaseException.__str__ (inherited documentation)

### details(self) | source code
Provide information describing why validation failed. In many cases, this is simply the informal string content that would be obtained through the `str` built-in function. For certain errors this method gives more details on what would be acceptable and where the descriptions can be found in the original schema. Returns: a string description of validation failure Overrides: ValidationError.details (inherited documentation)