18 #ifndef QGSSERVEREXCEPTION_H 19 #define QGSSERVEREXCEPTION_H 25 #include "qgis_server.h" 40 class SERVER_EXPORT QgsServerException
45 QgsServerException(
const QString &message,
int responseCode = 500 );
60 virtual QByteArray formatResponse( QString &responseFormat
SIP_OUT )
const;
80 class SERVER_EXPORT QgsOgcServiceException
85 QgsOgcServiceException(
const QString &code,
const QString &message,
const QString &locator = QString(),
86 int responseCode = 200,
const QString &version = QStringLiteral(
"1.3.0" ) );
89 QString
message()
const {
return mMessage; }
92 QString
code()
const {
return mCode; }
95 QString
locator()
const {
return mLocator; }
98 QString
version()
const {
return mVersion; }
101 QByteArray formatResponse( QString &responseFormat
SIP_OUT )
const override;
Exception base class for service exceptions.
QString version() const
return exception version
Exception base class for server exceptions.
Defines a QGIS exception class.