QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
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
25namespace QgsWfs
26{
27
34 {
35 public:
36
43 QgsServiceException( const QString &code, const QString &message, int responseCode = 200 )
44 : QgsOgcServiceException( code, message, QString(), responseCode, QStringLiteral( "1.2.0" ) )
45 {}
46
54 QgsServiceException( const QString &code, const QString &message, const QString &locator, int responseCode = 200 )
55 : QgsOgcServiceException( code, message, locator, responseCode, QStringLiteral( "1.2.0" ) )
56 {}
57 };
58
65 {
66 public:
67
74 QgsSecurityAccessException( const QString &message, const QString &locator = QString() )
75 : QgsServiceException( QStringLiteral( "Security" ), message, locator, 403 )
76 {}
77 };
78
85 {
86 public:
87
94 QgsRequestNotWellFormedException( const QString &message, const QString &locator = QString() )
95 : QgsServiceException( QStringLiteral( "RequestNotWellFormed" ), message, locator, 400 )
96 {}
97 };
98
105 {
106 public:
107
114 QgsBadRequestException( const QString &code, const QString &message, const QString &locator = QString() )
116 {}
117 };
118} // namespace QgsWfs
119
120#endif
QString locator() const
Returns the locator.
QgsOgcServiceException(const QString &code, const QString &message, const QString &locator=QString(), int responseCode=200, const QString &version=QStringLiteral("1.3.0"))
Construction.
QString message() const
Returns the exception message.
QString code() const
Returns the exception code.
int responseCode() const
Returns the return HTTP response code associated with this exception.
QgsBadRequestException(const QString &code, const QString &message, const QString &locator=QString())
Constructor for QgsBadRequestException (HTTP error code 400).
QgsRequestNotWellFormedException(const QString &message, const QString &locator=QString())
Constructor for QgsRequestNotWellFormedException (HTTP error code 400 with RequestNotWellFormed code ...
QgsSecurityAccessException(const QString &message, const QString &locator=QString())
Constructor for QgsSecurityAccessException (HTTP error code 403 with Security code name).
QgsServiceException(const QString &code, const QString &message, const QString &locator, int responseCode=200)
Constructor for QgsServiceException.
QgsServiceException(const QString &code, const QString &message, int responseCode=200)
Constructor for QgsServiceException.
WMS implementation.
Definition qgswfs.cpp:36