1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverexception.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsServerException
{
%Docstring(signature="appended")
Exception base class for server exceptions.
%End
%TypeHeaderCode
#include "qgsserverexception.h"
%End
public:
QgsServerException( const QString &message, int responseCode = 500 );
%Docstring
Constructor
%End
int responseCode() const;
%Docstring
:return: the return HTTP response code associated with this exception
%End
virtual QByteArray formatResponse( QString &responseFormat /Out/ ) const;
%Docstring
Formats the exception for sending to client
:return: - QByteArray The formatted response.
- responseFormat: QString to store the content type of the
response format.
The default implementation returns text/xml format.
%End
};
class QgsOgcServiceException
{
%Docstring(signature="appended")
Exception base class for service exceptions.
Note that this exception is associated with a default return code 200
which may be not appropriate in some situations.
%End
%TypeHeaderCode
#include "qgsserverexception.h"
%End
public:
QgsOgcServiceException( const QString &code, const QString &message, const QString &locator = QString(), int responseCode = 200, const QString &version = QStringLiteral( "1.3.0" ) );
%Docstring
Construction
%End
QString message() const;
%Docstring
Returns the exception message
%End
QString code() const;
%Docstring
Returns the exception code
%End
QString locator() const;
%Docstring
Returns the locator
%End
QString version() const;
%Docstring
Returns the exception version
%End
virtual QByteArray formatResponse( QString &responseFormat /Out/ ) const;
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverexception.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|