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

Class UnrecognizedElementError

source code

              object --+                        
                       |                        
exceptions.BaseException --+                    
                           |                    
        exceptions.Exception --+                
                               |                
                   PyXBException --+            
                                   |            
                    BadDocumentError --+        
                                       |        
              StructuralBadDocumentError --+    
                                           |    
                    UnrecognizedContentError --+
                                               |
                                              UnrecognizedElementError

Raised when creating an instance from a document with an unrecognized root element.

Instance Methods [hide private]
 
__init__(self, **kw)
Raised when creating an instance from a document with an unrecognized root element.
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_name
The pyxb.namespace.ExpandedName of the element that was not recognized.
  dom_node
The DOM node associated with the unrecognized element, if available.

Inherited from StructuralBadDocumentError: container, content, element_use

Inherited from PyXBException: message

Inherited from exceptions.BaseException: args

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kw)
(Constructor)

source code 

Raised when creating an instance from a document with an unrecognized root element.

Parameters:
  • element_name - The expanded name of the outermost element
  • dom_node - The DOM node of the outermost element, if available
Overrides: object.__init__

Property Details [hide private]

element_name

The pyxb.namespace.ExpandedName of the element that was not recognized.

Get Method:
unreachable.element_name(self) - The pyxb.namespace.ExpandedName of the element that was not recognized.

dom_node

The DOM node associated with the unrecognized element, if available.

Get Method:
unreachable.dom_node(self) - The DOM node associated with the unrecognized element, if available.