QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
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:
39 QgsException( const QString &message )
40 : mWhat( message )
41 {}
42
43 // cppcheck-suppress internalAstError
44 virtual ~QgsException() throw() = default;
45
47 QString what() const throw() { return mWhat; }
48
49 private:
51 QString mWhat;
52};
53
54
59class CORE_EXPORT QgsCsException : public QgsException
60{
61 public:
65 QgsCsException( const QString &message )
66 : QgsException( message )
67 {}
68};
69
75class CORE_EXPORT QgsProcessingException : public QgsException
76{
77 public:
81 QgsProcessingException( const QString &message )
82 : QgsException( message )
83 {}
84};
85
86
94{
95 public:
99 QgsProviderConnectionException( const QString &message )
100 : QgsException( message )
101 {}
102};
103
110class CORE_EXPORT QgsNotSupportedException : public QgsException
111{
112 public:
116 QgsNotSupportedException( const QString &message )
117 : QgsException( message )
118 {}
119};
120
127class CORE_EXPORT QgsSettingsException : public QgsException
128{
129 public:
133 QgsSettingsException( const QString &message )
134 : QgsException( message )
135 {}
136};
137
144class CORE_EXPORT QgsSfcgalException : public QgsException
145{
146 public:
150 QgsSfcgalException( const QString &message )
151 : QgsException( message )
152 {}
153};
154
162{
163 public:
167 QgsInvalidArgumentException( const QString &message )
168 : QgsException( message )
169 {}
170};
171
172#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.