QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
qgswcsserviceexception.h
Go to the documentation of this file.
1/***************************************************************************
2 qgswcsserviceexception.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 QGSWCSSERVICEEXCEPTION_H
19#define QGSWCSSERVICEEXCEPTION_H
20
21#include <QString>
22
23#include "qgsserverexception.h"
24
25namespace QgsWcs
26{
27
34 {
35 public:
36
43 QgsServiceException( const QString &code, const QString &message,
44 int responseCode = 200 )
45 : QgsOgcServiceException( code, message, QString(), responseCode, QStringLiteral( "1.2.0" ) )
46 {}
47
55 QgsServiceException( const QString &code, const QString &message, const QString &locator,
56 int responseCode = 200 )
57 : QgsOgcServiceException( code, message, locator, responseCode, QStringLiteral( "1.2.0" ) )
58 {}
59
60 };
61
68 {
69 public:
70
76 QgsSecurityAccessException( const QString &message, const QString &locator = QString() )
77 : QgsServiceException( QStringLiteral( "Security" ), message, locator, 403 )
78 {}
79 };
80
87 {
88 public:
89
95 QgsRequestNotWellFormedException( const QString &message, const QString &locator = QString() )
96 : QgsServiceException( QStringLiteral( "RequestNotWellFormed" ), message, locator, 400 )
97 {}
98 };
99} // namespace QgsWcs
100
101#endif
102
Exception base class for service exceptions.
QString locator() const
Returns the locator.
QString message() const
Returns the exception message.
QString code() const
Returns the exception code.
Exception thrown in case of malformed request.
QgsRequestNotWellFormedException(const QString &message, const QString &locator=QString())
Constructor for QgsRequestNotWellFormedException (RequestNotWellFormed code name).
Exception thrown when data access violates access controls.
QgsSecurityAccessException(const QString &message, const QString &locator=QString())
Constructor for QgsSecurityAccessException (Security code name).
Exception class for WFS services.
QgsServiceException(const QString &code, const QString &message, int responseCode=200)
Constructor for QgsServiceException (empty locator attribute).
QgsServiceException(const QString &code, const QString &message, const QString &locator, int responseCode=200)
Constructor for QgsServiceException.
WCS implementation.
Definition qgswcs.cpp:30