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

type InvalidOperation

              object --+                    
                       |                    
exceptions.BaseException --+                
                           |                
        exceptions.Exception --+            
                               |            
        exceptions.StandardError --+        
                                   |        
          exceptions.ArithmeticError --+    
                                       |    
                        DecimalException --+
                                           |
                                          InvalidOperation
Known Subclasses:

An invalid operation was performed.

Various bad things cause this:

Something creates a signaling NaN
-INF + INF
 0 * (+-)INF
 (+-)INF / (+-)INF
x % 0
(+-)INF % x
x._rescale( non-integer )
sqrt(-x) , x > 0
0 ** 0
x ** (non-integer)
x ** (+-)INF
An operand is invalid

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