QGIS API Documentation 3.99.0-Master (7d2ca374f2d)
Loading...
Searching...
No Matches
qgsexception.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsexception.h
3 -------------------
4 begin : August 31, 2004
5 copyright : (C) 2004 by Mark Coletti
6 email : mcoletti at gmail.com
7***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17#ifndef QGSEXCEPTION_H
18#define QGSEXCEPTION_H
19
20#define SIP_NO_CREATION
21
22
23#include "qgis_core.h"
24
25#include <QString>
26
27#define SIP_NO_FILE
28
33class CORE_EXPORT QgsException
34{
35 public:
36
40 QgsException( const QString &message )
41 : mWhat( message )
42 {}
43
44 // cppcheck-suppress internalAstError
45 virtual ~QgsException() throw() = default;
46
48 QString what() const throw()
49 {
50 return mWhat;
51 }
52
53 private:
54
56 QString mWhat;
57
58};
59
60
65class CORE_EXPORT QgsCsException : public QgsException
66{
67 public:
68
72 QgsCsException( const QString &message ) : QgsException( message ) {}
73
74};
75
81class CORE_EXPORT QgsProcessingException : public QgsException
82{
83 public:
84
88 QgsProcessingException( const QString &message ) : QgsException( message ) {}
89
90};
91
92
100{
101 public:
102
106 QgsProviderConnectionException( const QString &message ) : QgsException( message ) {}
107
108};
109
116class CORE_EXPORT QgsNotSupportedException : public QgsException
117{
118 public:
119
123 QgsNotSupportedException( const QString &message ) : QgsException( message ) {}
124};
125
132class CORE_EXPORT QgsSettingsException : public QgsException
133{
134 public:
135
139 QgsSettingsException( const QString &message ) : QgsException( message ) {}
140
141};
142
149class CORE_EXPORT QgsSfcgalException : public QgsException
150{
151 public:
152
156 QgsSfcgalException( const QString &message ) : QgsException( message ) {}
157
158};
159
167{
168 public:
169
173 QgsInvalidArgumentException( const QString &message )
174 : QgsException( message ) {}
175};
176
177#endif
QgsCsException(const QString &message)
Constructor for QgsCsException, with the specified error message.
virtual ~QgsException()=default
QString what() const
QgsException(const QString &message)
Constructor for QgsException, with the specified error message.
QgsInvalidArgumentException(const QString &message)
Constructor for QgsInvalidArgumentException, with the specified error message.
QgsNotSupportedException(const QString &message)
Constructor for QgsNotSupportedException, with the specified error message.
QgsProcessingException(const QString &message)
Constructor for QgsProcessingException, with the specified error message.
QgsProviderConnectionException(const QString &message)
Constructor for QgsProviderConnectionException, with the specified error message.
QgsSettingsException(const QString &message)
Constructor for QgsProcessingException, with the specified error message.
QgsSfcgalException(const QString &message)
Constructor for QgsSfcgalException, with the specified error message.