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

Class SimpleUnionValueError

source code

              object --+                    
                       |                    
exceptions.BaseException --+                
                           |                
        exceptions.Exception --+            
                               |            
                   PyXBException --+        
                                   |        
                     ValidationError --+    
                                       |    
                    SimpleTypeValueError --+
                                           |
                                          SimpleUnionValueError

Raised when a union simple type contains a member that does not satisfy its constraints.

In this case, type is the type of the union, and the value type._MemberTypes is the set of types for which the value is unacceptable.

The value itself is the tuple of arguments passed to the constructor for the union.

Instance Methods [hide private]
 
__str__(self)
str(x)
source code

Inherited from SimpleTypeValueError: __init__

Inherited from ValidationError: details

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 SimpleTypeValueError: type, value

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]

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)