***UNCHECKED*** Exception: unknown instead of the expected one
Alessandro Pasotti <[email protected]>
| Newsgroups | gmane.comp.python.pyqt-pykde |
|---|---|
| Message-ID | <CAL5Q670uToEC+1SNzU-kwc02DMQHGecj7px_dC+hvpNYCjRKew@mail.gmail.com> |
Hi,
I've added an exception in the SIP file:
%Exception QgsProviderConnectionException(SIP_Exception)
/PyName=QgsProviderConnectionException/
{
%TypeHeaderCode
#include <qgsexception.h>
%End
%RaiseCode
SIP_BLOCK_THREADS
PyErr_SetString(sipException_QgsProviderConnectionException,
sipExceptionRef.what().toUtf8().constData() );
SIP_UNBLOCK_THREADS
%End
};
then, in the class method:
virtual void executeSql( const QString &sql) throw(
QgsProviderConnectionException );
but when calling from Python I always get Exception: unknown, what is
possible going wrong?
Thanks
--
Alessandro Pasotti
w3: www.itopen.it
_______________________________________________
PyQt mailing list [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt