Package qm :: Module common :: Class PythonException
[hide private]
[frames] | no frames]

Class PythonException

source code

              object --+            
                       |            
exceptions.BaseException --+        
                           |        
        exceptions.Exception --+    
                               |    
                     QMException --+
                                   |
                                  PythonException

A 'PythonException' is a wrapper around a Python exception.

A 'PythonException' is a 'QMException' and, as such, can be processed by the QM error-handling routines. However, the raw Python exception which triggered this exception can be obtained by using the 'exc_type' and 'exc_value' attributes of this exception.

Instance Methods [hide private]
 
__init__(self, message, exc_type, exc_value)
Construct a new 'PythonException'.
source code

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__

Properties [hide private]

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details [hide private]

__init__(self, message, exc_type, exc_value)
(Constructor)

source code 

Construct a new 'PythonException'.

'message' -- A string describing the cause of the message as structured text. If this exception is not handled, the 'message' will be displayed as an error message.

'exc_type' -- The type of the Python exception.

'exc_value' -- The value of the Python exception.

Overrides: object.__init__