QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
server
services
wfs
qgswfsserviceexception.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgswfsserviceexception.h
3
------------------------
4
begin : January 17, 2017
5
copyright : (C) 2017 by David Marteau
6
email : david dot marteau at 3liz dot 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
18
#ifndef QGSWFSSERVICEEXCEPTION_H
19
#define QGSWFSSERVICEEXCEPTION_H
20
21
#include "
qgsserverexception.h
"
22
23
#include <QString>
24
25
using namespace
Qt::StringLiterals;
26
27
namespace
QgsWfs
28
{
29
35
class
QgsServiceException
:
public
QgsOgcServiceException
36
{
37
public
:
44
QgsServiceException
(
const
QString &
code
,
const
QString &
message
,
int
responseCode
= 200 )
45
:
QgsOgcServiceException
(
code
,
message
, QString(),
responseCode
, u
"1.2.0"
_s )
46
{}
47
55
QgsServiceException
(
const
QString &
code
,
const
QString &
message
,
const
QString &
locator
,
int
responseCode
= 200 )
56
:
QgsOgcServiceException
(
code
,
message
,
locator
,
responseCode
, u
"1.2.0"
_s )
57
{}
58
};
59
65
class
QgsSecurityAccessException
:
public
QgsServiceException
66
{
67
public
:
74
QgsSecurityAccessException
(
const
QString &
message
,
const
QString &
locator
= QString() )
75
:
QgsServiceException
( u
"Security"
_s,
message
,
locator
, 403 )
76
{}
77
};
78
84
class
QgsRequestNotWellFormedException
:
public
QgsServiceException
85
{
86
public
:
93
QgsRequestNotWellFormedException
(
const
QString &
message
,
const
QString &
locator
= QString() )
94
:
QgsServiceException
( u
"RequestNotWellFormed"
_s,
message
,
locator
, 400 )
95
{}
96
};
97
103
class
QgsBadRequestException
:
public
QgsServiceException
104
{
105
public
:
112
QgsBadRequestException
(
const
QString &
code
,
const
QString &
message
,
const
QString &
locator
= QString() )
113
:
QgsServiceException
(
code
,
message
,
locator
, 400 )
114
{}
115
};
116
}
// namespace QgsWfs
117
118
#endif
QgsOgcServiceException::locator
QString locator() const
Returns the locator.
Definition
qgsserverexception.h:99
QgsOgcServiceException::message
QString message() const
Returns the exception message.
Definition
qgsserverexception.h:93
QgsOgcServiceException::code
QString code() const
Returns the exception code.
Definition
qgsserverexception.h:96
QgsOgcServiceException::QgsOgcServiceException
QgsOgcServiceException(const QString &code, const QString &message, const QString &locator=QString(), int responseCode=200, const QString &version=u"1.3.0"_s)
Construction.
Definition
qgsserverexception.cpp:47
QgsServerException::responseCode
int responseCode() const
Returns the return HTTP response code associated with this exception.
Definition
qgsserverexception.h:56
QgsWfs::QgsBadRequestException::QgsBadRequestException
QgsBadRequestException(const QString &code, const QString &message, const QString &locator=QString())
Constructor for QgsBadRequestException (HTTP error code 400).
Definition
qgswfsserviceexception.h:112
QgsWfs::QgsRequestNotWellFormedException::QgsRequestNotWellFormedException
QgsRequestNotWellFormedException(const QString &message, const QString &locator=QString())
Constructor for QgsRequestNotWellFormedException (HTTP error code 400 with RequestNotWellFormed code ...
Definition
qgswfsserviceexception.h:93
QgsWfs::QgsSecurityAccessException::QgsSecurityAccessException
QgsSecurityAccessException(const QString &message, const QString &locator=QString())
Constructor for QgsSecurityAccessException (HTTP error code 403 with Security code name).
Definition
qgswfsserviceexception.h:74
QgsWfs::QgsServiceException::QgsServiceException
QgsServiceException(const QString &code, const QString &message, const QString &locator, int responseCode=200)
Constructor for QgsServiceException.
Definition
qgswfsserviceexception.h:55
QgsWfs::QgsServiceException::QgsServiceException
QgsServiceException(const QString &code, const QString &message, int responseCode=200)
Constructor for QgsServiceException.
Definition
qgswfsserviceexception.h:44
QgsWfs
WMS implementation.
Definition
qgswfs.cpp:39
qgsserverexception.h
Generated on
for QGIS API Documentation by
1.17.0