QGIS API Documentation
3.2.0-Bonn (bc43194)
|
Exception base class for server exceptions. More...
#include <qgsserverexception.h>
Public Member Functions | |
QgsServerException (const QString &message, int responseCode=500) | |
Constructor. More... | |
virtual QByteArray | formatResponse (QString &responseFormat) const |
Format the exception for sending to client. More... | |
int | responseCode () const |
Public Member Functions inherited from QgsException | |
QgsException (const QString &message) | |
Constructor for QgsException, with the specified error message. More... | |
virtual | ~QgsException ()=default throw () |
QString | what () const throw () |
Exception base class for server exceptions.
Definition at line 37 of file qgsserverexception.h.
QgsServerException::QgsServerException | ( | const QString & | message, |
int | responseCode = 500 |
||
) |
Constructor.
|
virtual |
Format the exception for sending to client.
responseFormat | QString to store the content type of the response format. |
The defaolt implementation return text/xml format.
Reimplemented in QgsOgcServiceException.
|
inline |
Definition at line 50 of file qgsserverexception.h.