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

Class NotAnElementError

source code

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

Raised when processing document and a tag that is a type but not an element is encountered.

Instance Methods [hide private]
 
__init__(self, element_name, containing_type, **kw)
Raised when a document inner element is recognized as a type rather than an 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.
  containing_type
The pyxb.binding.content.complexTypeDefinition in which the element was unrecognized.

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

source code 

Raised when a document inner element is recognized as a type rather than an element.

Parameters:
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.

containing_type

The pyxb.binding.content.complexTypeDefinition in which the element was unrecognized.

Get Method:
unreachable.containing_type(self) - The pyxb.binding.content.complexTypeDefinition in which the element was unrecognized.