2023-12-07 10:38:10 +01:00
|
|
|
%Exception QgsCsException(SIP_Exception) /PyName=QgsCsException/
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsexception.h>
|
|
|
|
%End
|
|
|
|
%RaiseCode
|
|
|
|
SIP_BLOCK_THREADS
|
|
|
|
PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
|
|
|
|
SIP_UNBLOCK_THREADS
|
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
|
|
%Exception QgsProcessingException(SIP_Exception) /PyName=QgsProcessingException/
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsexception.h>
|
|
|
|
%End
|
|
|
|
%RaiseCode
|
|
|
|
SIP_BLOCK_THREADS
|
|
|
|
PyErr_SetString(sipException_QgsProcessingException, sipExceptionRef.what().toUtf8().constData() );
|
|
|
|
SIP_UNBLOCK_THREADS
|
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
2024-01-30 16:54:09 +10:00
|
|
|
%Exception QgsProviderConnectionException(SIP_Exception) /PyName=QgsProviderConnectionException/
|
2023-12-07 10:38:10 +01:00
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsexception.h>
|
|
|
|
%End
|
|
|
|
%RaiseCode
|
|
|
|
SIP_BLOCK_THREADS
|
2024-01-30 16:54:09 +10:00
|
|
|
PyErr_SetString(sipException_QgsProviderConnectionException, sipExceptionRef.what().toUtf8().constData() );
|
2023-12-07 10:38:10 +01:00
|
|
|
SIP_UNBLOCK_THREADS
|
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
2024-01-30 16:54:09 +10:00
|
|
|
%Exception QgsNotSupportedException(SIP_Exception) /PyName=QgsNotSupportedException/
|
2023-12-07 10:38:10 +01:00
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsexception.h>
|
|
|
|
%End
|
|
|
|
%RaiseCode
|
|
|
|
SIP_BLOCK_THREADS
|
2024-01-30 16:54:09 +10:00
|
|
|
PyErr_SetString(sipException_QgsNotSupportedException, sipExceptionRef.what().toUtf8().constData() );
|
2023-12-07 10:38:10 +01:00
|
|
|
SIP_UNBLOCK_THREADS
|
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
2024-01-30 16:54:09 +10:00
|
|
|
%Exception QgsSettingsException(SIP_Exception) /PyName=QgsSettingsException/
|
2023-12-07 10:38:10 +01:00
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsexception.h>
|
|
|
|
%End
|
|
|
|
%RaiseCode
|
|
|
|
SIP_BLOCK_THREADS
|
2024-01-30 16:54:09 +10:00
|
|
|
PyErr_SetString(sipException_QgsSettingsException, sipExceptionRef.what().toUtf8().constData() );
|
2023-12-07 10:38:10 +01:00
|
|
|
SIP_UNBLOCK_THREADS
|
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
2024-01-30 16:54:09 +10:00
|
|
|
|
|
|
|
// IMPORTANT -- QgsException MUST be last listed, or it will greedily prevent the more
|
|
|
|
// specialized exceptions from being raised
|
|
|
|
|
|
|
|
%Exception QgsException(SIP_Exception) /PyName=QgsException/
|
2023-12-07 10:38:10 +01:00
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsexception.h>
|
|
|
|
%End
|
|
|
|
%RaiseCode
|
|
|
|
SIP_BLOCK_THREADS
|
2024-01-30 16:54:09 +10:00
|
|
|
PyErr_SetString(sipException_QgsException, sipExceptionRef.what().toUtf8().constData() );
|
2023-12-07 10:38:10 +01:00
|
|
|
SIP_UNBLOCK_THREADS
|
|
|
|
%End
|
|
|
|
};
|
2024-01-30 16:54:09 +10:00
|
|
|
|
|
|
|
// IMPORTANT -- QgsException MUST be last listed, or it will greedily prevent the more
|
|
|
|
// specialized exceptions from being raised
|