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

# type NotSimpleContentError

source code

                  object --+
                           |
    exceptions.BaseException --+
                               |
            exceptions.Exception --+
                                   |
                       PyXBException --+
                                       |
                            BindingError --+
                                           |
                                          NotSimpleContentError

An operation that requires simple content was invoked on a complex type instance that does not have simple content.

Instance Methods | [hide private]
__init__(self, instance) Create an exception indicating a PyXB-related problem. | source code
__unicode__(self) | source code
__str__(self) str(x) | 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__`

Class Variables | [hide private]
| instance = `None` The binding instance which should have had simple content.
Inherited from `PyXBException` (private): `_args`, `_kw`

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

Method Details | [hide private]

### __init__(self, instance) (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 binding instance that was mis-used. This will be available in the instance attribute. Overrides: exceptions.BaseException.__init__

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

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