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

Class StructuralBadDocumentError

source code

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

Raised when processing document and the content model is not satisfied.

Instance Methods [hide private]
 
__init__(self, *args, **kw)
Raised when processing document and the content model is not satisfied.
source code

Inherited from PyXBException: __str__

Inherited from exceptions.Exception: __new__

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

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

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, *args, **kw)
(Constructor)

source code 

Raised when processing document and the content model is not satisfied.

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.