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

Class SimpleTypeValueError

source code

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

Raised when a simple type value does not satisfy its constraints.

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

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]
  type = None
The pyxb.binding.basis.simpleTypeDefinition that constrains values.
  value = None
The value that violates the constraints of type.

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, value, 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.
  • value - the value for the value attribute.
  • location - the value for the location attribute. Default taken from value if possible.
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

value

The value that violates the constraints of type. In some cases this is a tuple of arguments passed to a constructor that failed with a built-in exception likeValueError or OverflowError.

Value:
None