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

Class BatchElementContentError

source code

              object --+                        
                       |                        
exceptions.BaseException --+                    
                           |                    
        exceptions.Exception --+                
                               |                
                   PyXBException --+            
                                   |            
                     ValidationError --+        
                                       |        
              ComplexTypeValidationError --+    
                                           |    
                      ContentValidationError --+
                                               |
                                              BatchElementContentError
Known Subclasses:

Element/wildcard content cannot be reconciled with the required content model.

This exception occurs in post-construction validation using a fresh validating automaton.

Instance Methods [hide private]
 
__init__(self, instance, fac_configuration, symbols, symbol_set)
Create an exception indicating a PyXB-related problem.
source code
 
details(self)
Provide information describing why validation failed.
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__, __str__, __unicode__

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

Class Variables [hide private]
  instance = None
The binding instance being constructed.
  fac_configuration = None
The pyxb.utils.fac.Configuration representing the current state of the instance automaton.
  symbols = None
The sequence of symbols that were accepted as content prior to the error.
  symbol_set = None
The leftovers from pyxb.binding.basis.complexTypeDefinition._symbolSet that could not be reconciled with the content model.

Inherited from ValidationError: location

Inherited from PyXBException (private): _args, _kw

Properties [hide private]

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details [hide private]

__init__(self, instance, fac_configuration, symbols, symbol_set)
(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 value for the instance attribute.
  • fac_configuration - the value for the fac_configuration attribute.
  • symbols - the value for the symbols attribute.
  • symbol_set - the value for the symbol_set attribute.
Overrides: object.__init__

details(self)

source code 

Provide information describing why validation failed.

In many cases, this is simply the informal string content that would be obtained through the str built-in function. For certain errors this method gives more details on what would be acceptable and where the descriptions can be found in the original schema.

Returns:
a string description of validation failure
Overrides: ValidationError.details
(inherited documentation)