QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
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
33
class
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
59
class
CORE_EXPORT
QgsCsException
:
public
QgsException
60
{
61
public
:
65
QgsCsException
(
const
QString &message )
66
:
QgsException
( message )
67
{}
68
};
69
75
class
CORE_EXPORT
QgsProcessingException
:
public
QgsException
76
{
77
public
:
81
QgsProcessingException
(
const
QString &message )
82
:
QgsException
( message )
83
{}
84
};
85
86
93
class
CORE_EXPORT
QgsProviderConnectionException
:
public
QgsException
94
{
95
public
:
99
QgsProviderConnectionException
(
const
QString &message )
100
:
QgsException
( message )
101
{}
102
};
103
110
class
CORE_EXPORT
QgsNotSupportedException
:
public
QgsException
111
{
112
public
:
116
QgsNotSupportedException
(
const
QString &message )
117
:
QgsException
( message )
118
{}
119
};
120
127
class
CORE_EXPORT
QgsSettingsException
:
public
QgsException
128
{
129
public
:
133
QgsSettingsException
(
const
QString &message )
134
:
QgsException
( message )
135
{}
136
};
137
144
class
CORE_EXPORT
QgsSfcgalException
:
public
QgsException
145
{
146
public
:
150
QgsSfcgalException
(
const
QString &message )
151
:
QgsException
( message )
152
{}
153
};
154
161
class
CORE_EXPORT
QgsInvalidArgumentException
:
public
QgsException
162
{
163
public
:
167
QgsInvalidArgumentException
(
const
QString &message )
168
:
QgsException
( message )
169
{}
170
};
171
172
#endif
QgsCsException::QgsCsException
QgsCsException(const QString &message)
Constructor for QgsCsException, with the specified error message.
Definition
qgsexception.h:65
QgsException::~QgsException
virtual ~QgsException()=default
QgsException::what
QString what() const
Definition
qgsexception.h:47
QgsException::QgsException
QgsException(const QString &message)
Constructor for QgsException, with the specified error message.
Definition
qgsexception.h:39
QgsInvalidArgumentException::QgsInvalidArgumentException
QgsInvalidArgumentException(const QString &message)
Constructor for QgsInvalidArgumentException, with the specified error message.
Definition
qgsexception.h:167
QgsNotSupportedException::QgsNotSupportedException
QgsNotSupportedException(const QString &message)
Constructor for QgsNotSupportedException, with the specified error message.
Definition
qgsexception.h:116
QgsProcessingException::QgsProcessingException
QgsProcessingException(const QString &message)
Constructor for QgsProcessingException, with the specified error message.
Definition
qgsexception.h:81
QgsProviderConnectionException::QgsProviderConnectionException
QgsProviderConnectionException(const QString &message)
Constructor for QgsProviderConnectionException, with the specified error message.
Definition
qgsexception.h:99
QgsSettingsException::QgsSettingsException
QgsSettingsException(const QString &message)
Constructor for QgsProcessingException, with the specified error message.
Definition
qgsexception.h:133
QgsSfcgalException::QgsSfcgalException
QgsSfcgalException(const QString &message)
Constructor for QgsSfcgalException, with the specified error message.
Definition
qgsexception.h:150
Generated on
for QGIS API Documentation by
1.17.0