Module decimal :: Class InvalidContext
[hide private]
[frames] | no frames]

type InvalidContext

              object --+                        
                       |                        
exceptions.BaseException --+                    
                           |                    
        exceptions.Exception --+                
                               |                
        exceptions.StandardError --+            
                                   |            
          exceptions.ArithmeticError --+        
                                       |        
                        DecimalException --+    
                                           |    
                            InvalidOperation --+
                                               |
                                              InvalidContext

Invalid context. Unknown rounding, for example.

This occurs and signals invalid-operation if an invalid context was detected during an operation. This can occur if contexts are not checked on creation and either the precision exceeds the capability of the underlying concrete representation or an unknown or unsupported rounding was specified. These aspects of the context need only be checked when the values are required to be used. The result is [0,qNaN].

Instance Methods [hide private]
 
handle(self, context, *args)

Inherited from exceptions.ArithmeticError: __init__, __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__

Properties [hide private]

Inherited from exceptions.BaseException: args, message

Method Details [hide private]

handle(self, context, *args)

 
Overrides: DecimalException.handle