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

Class PythonException
source code

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'.

Inherited from exceptions.Exception: __getitem__, __str__


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: QMException.__init__