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; }
100 QByteArray formatResponse( QString &responseFormat
SIP_OUT )
const override;
Exception base class for service exceptions.
QString message() const
Returns the exception message.
QString version() const
Returns the exception version.
QString locator() const
Returns the locator.
Exception base class for server exceptions.
QString code() const
Returns the exception code.
Defines a QGIS exception class.