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

# type InvalidPreferredElementContentError

source code

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

Use of a preferred element led to inability to generate a valid document

Instance Methods | [hide private]
__init__(self, instance, fac_configuration, symbols, symbol_set, preferred_symbol) Create an exception indicating a PyXB-related problem. | source code
Inherited from `BatchElementContentError`: `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]
| preferred_symbol = `None` The element symbol which was not accepted.
Inherited from `BatchElementContentError`: `fac_configuration`, `instance`, `symbol_set`, `symbols` 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, fac_configuration, symbols, symbol_set, preferred_symbol) (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. `fac_configuration` - the value for the fac_configuration attribute. `symbols` - the value for the symbols attribute. `symbol_set` - the value for the symbol_set attribute. `preferred_symbol` - the value for the preferred_symbol attribute. Overrides: exceptions.BaseException.__init__