QGIS/python/server/auto_generated/qgsserverexception.sip.in

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

102 lines
2.6 KiB
Plaintext
Raw Normal View History

2017-06-26 09:57:09 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverexception.h *
* *
2024-08-11 07:55:04 +10:00
* Do not edit manually ! Edit header and run scripts/sipify.py again *
2017-06-26 09:57:09 +02:00
************************************************************************/
class QgsServerException
{
2021-03-22 21:13:52 +01:00
%Docstring(signature="appended")
Exception base class for server exceptions.
2017-06-26 09:57:09 +02:00
%End
%TypeHeaderCode
2017-06-26 09:57:09 +02:00
#include "qgsserverexception.h"
%End
public:
QgsServerException( const QString &message, int responseCode = 500 );
2017-06-26 09:57:09 +02:00
%Docstring
Constructor
%End
int responseCode() const;
2017-06-26 09:57:09 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
:return: the return HTTP response code associated with this exception
2017-06-26 09:57:09 +02:00
%End
2017-06-26 09:57:09 +02:00
virtual QByteArray formatResponse( QString &responseFormat /Out/ ) const;
%Docstring
2019-03-22 12:36:52 +00:00
Formats the exception for sending to client
2017-12-15 10:36:55 -04:00
2017-06-26 09:57:09 +02:00
2019-03-22 12:36:52 +00:00
:return: - QByteArray The formatted response.
- responseFormat: QString to store the content type of the response format.
2017-12-15 10:36:55 -04:00
2019-03-22 12:36:52 +00:00
The default implementation returns text/xml format.
2017-06-26 09:57:09 +02:00
%End
};
class QgsOgcServiceException
{
2021-03-22 21:13:52 +01:00
%Docstring(signature="appended")
Exception base class for service exceptions.
2017-06-26 09:57:09 +02:00
2017-12-15 10:36:55 -04:00
Note that this exception is associated with a default return code 200 which may be
not appropriate in some situations.
2017-06-26 09:57:09 +02:00
%End
%TypeHeaderCode
2017-06-26 09:57:09 +02:00
#include "qgsserverexception.h"
%End
public:
2024-12-10 14:52:35 +01:00
QgsOgcServiceException( const QString &code, const QString &message, const QString &locator = QString(), int responseCode = 200, const QString &version = QStringLiteral( "1.3.0" ) );
2017-06-26 09:57:09 +02:00
%Docstring
Construction
%End
QString message() const;
2017-06-26 09:57:09 +02:00
%Docstring
Returns the exception message
2017-06-26 09:57:09 +02:00
%End
2024-12-10 14:52:35 +01:00
QString code() const;
2017-06-26 09:57:09 +02:00
%Docstring
Returns the exception code
2017-06-26 09:57:09 +02:00
%End
QString locator() const;
2017-06-26 09:57:09 +02:00
%Docstring
Returns the locator
2017-06-26 09:57:09 +02:00
%End
2017-06-26 09:57:09 +02:00
QString version() const;
%Docstring
Returns the exception version
2017-06-26 09:57:09 +02:00
%End
2017-06-26 09:57:09 +02:00
virtual QByteArray formatResponse( QString &responseFormat /Out/ ) const;
2017-06-26 09:57:09 +02:00
};
2017-06-26 09:57:09 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverexception.h *
* *
2024-08-11 07:55:04 +10:00
* Do not edit manually ! Edit header and run scripts/sipify.py again *
2017-06-26 09:57:09 +02:00
************************************************************************/