Skip to content

Commit

Permalink
create specific QgsSettingsException
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 16, 2023
1 parent 692a53d commit 5a8c73c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/core/qgsexception.h
Expand Up @@ -122,6 +122,22 @@ class CORE_EXPORT QgsNotSupportedException : public QgsException
* Constructor for QgsNotSupportedException, with the specified error \a message.
*/
QgsNotSupportedException( const QString &message ) : QgsException( message ) {}
};

/**
* \class QgsSettingsException
* \ingroup core
* \brief Custom exception class for settings related exceptions.
* \since QGIS 3.30
*/
class CORE_EXPORT QgsSettingsException : public QgsException
{
public:

/**
* Constructor for QgsProcessingException, with the specified error \a message.
*/
QgsSettingsException( const QString &message ) : QgsException( message ) {}

};

Expand Down

0 comments on commit 5a8c73c

Please sign in to comment.