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

Class UnrecognizedContentError

source code

              object --+                    
                       |                    
exceptions.BaseException --+                
                           |                
        exceptions.Exception --+            
                               |            
                   PyXBException --+        
                                   |        
                    BadDocumentError --+    
                                       |    
              StructuralBadDocumentError --+
                                           |
                                          UnrecognizedContentError
Known Subclasses:

Raised when processing document and an element does not match the content model.

Instance Methods [hide private]
 
__init__(self, content, **kw)
Raised when processing document and an element does not match the content model.
source code

Inherited from PyXBException: __str__

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__

Inherited from object: __hash__, __reduce_ex__

Class Variables [hide private]

Inherited from PyXBException (private): _args, _kw

Properties [hide private]
  element_use
The pyxb.binding.content.ElementUse 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 PyXBException: message

Inherited from exceptions.BaseException: args

Inherited from object: __class__

Method Details [hide private]

__init__(self, content, **kw)
(Constructor)

source code 

Raised when processing document and an element does not match the content model.

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: object.__init__

Property Details [hide private]

element_use

The pyxb.binding.content.ElementUse instance to which the content should conform, if available.

Get Method:
unreachable.element_use(self) - The pyxb.binding.content.ElementUse instance to which the content should conform, if available.

container

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

Get Method:
unreachable.container(self) - 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.

Get Method:
unreachable.content(self) - The value which could not be reconciled with the content model.