@@ -31,13 +31,6 @@ namespace QgsWms
31
31
* \ingroup server
32
32
* \class QgsWms::QgsServiceException
33
33
* \brief Exception class for WMS service exceptions.
34
- *
35
- * The most important codes are:
36
- * * "InvalidFormat"
37
- * * "Invalid CRS"
38
- * * "LayerNotDefined" / "StyleNotDefined"
39
- * * "OperationNotSupported"
40
- *
41
34
* \since QGIS 3.0
42
35
*/
43
36
class QgsServiceException : public QgsOgcServiceException
@@ -87,10 +80,24 @@ namespace QgsWms
87
80
: QgsOgcServiceException( code, message, QString(), responseCode, QStringLiteral( " 1.3.0" ) )
88
81
{}
89
82
83
+ /* *
84
+ * Constructor for QgsServiceException (empty locator attribute).
85
+ * \param code Error code
86
+ * \param message Exception message to return to the client
87
+ * \param responseCode HTTP error code
88
+ * \since QGIS 3.8
89
+ */
90
90
QgsServiceException ( ExceptionCode code, const QString &message, int responseCode )
91
91
: QgsServiceException( formatCode( code ), message, QString(), responseCode )
92
92
{}
93
93
94
+ /* *
95
+ * Constructor for QgsServiceException (empty locator attribute).
96
+ * \param code Error code
97
+ * \param parameter The WMS parameter on which an error has been detected
98
+ * \param responseCode HTTP error code
99
+ * \since QGIS 3.8
100
+ */
94
101
QgsServiceException ( ExceptionCode code, const QgsWmsParameter ¶meter, int responseCode )
95
102
: QgsServiceException( formatCode( code ), formatMessage( code, parameter ), QString(), responseCode )
96
103
{}
@@ -213,14 +220,20 @@ namespace QgsWms
213
220
214
221
/* *
215
222
* Constructor for QgsBadRequestException (HTTP error code 400).
216
- * \param code Error code name
223
+ * \param code Error code
217
224
* \param message Exception message to return to the client
218
- * \param locator Locator attribute according to OGC specifications
225
+ * \since QGIS 3.8
219
226
*/
220
227
QgsBadRequestException ( ExceptionCode code, const QString &message )
221
228
: QgsServiceException( code, message, 400 )
222
229
{}
223
230
231
+ /* *
232
+ * Constructor for QgsBadRequestException (HTTP error code 400).
233
+ * \param code Error code
234
+ * \param parameter The WMS parameter on which an error has been detected
235
+ * \since QGIS 3.8
236
+ */
224
237
QgsBadRequestException ( ExceptionCode code, const QgsWmsParameter ¶meter )
225
238
: QgsServiceException( code, parameter, 400 )
226
239
{}
0 commit comments