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

Class AttributeValidationError

source code

              object --+                
                       |                
exceptions.BaseException --+            
                           |            
        exceptions.Exception --+        
                               |        
                   PyXBException --+    
                                   |    
                     ValidationError --+
                                       |
                                      AttributeValidationError
Known Subclasses:

Raised when an attribute requirement is not satisfied.

Instance Methods [hide private]
 
__init__(self, type, tag, instance=None, location=None)
Create an exception indicating a PyXB-related problem.
source code

Inherited from ValidationError: details

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]
  type = None
The pyxb.binding.basis.complexTypeDefinition subclass of the instance.
  tag = None
The name of the attribute.
  instance = None
The binding instance, if available.

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, type, tag, instance=None, location=None)
(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:
  • type - the value for the type attribute.
  • tag - the value for the tag attribute.
  • instance - the value for the instance attribute.
  • location - the value for the location attribute. Default taken from instance if possible.
Overrides: object.__init__