QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
Exception base class for server exceptions. More...
#include <qgsserverexception.h>
Public Member Functions | |
QgsServerException (const QString &message, int responseCode=500) | |
Constructor. | |
virtual QByteArray | formatResponse (QString &responseFormat) const |
Formats the exception for sending to client. | |
int | responseCode () const |
Public Member Functions inherited from QgsException | |
QgsException (const QString &message) | |
Constructor for QgsException, with the specified error message. | |
virtual | ~QgsException () throw () =default |
QString | what () const throw () |
Exception base class for server exceptions.
Definition at line 41 of file qgsserverexception.h.
QgsServerException::QgsServerException | ( | const QString & | message, |
int | responseCode = 500 |
||
) |
Constructor.
Definition at line 23 of file qgsserverexception.cpp.
|
virtual |
Formats the exception for sending to client.
responseFormat | QString to store the content type of the response format. |
The default implementation returns text/xml format.
Reimplemented in QgsOgcServiceException, and QgsServerApiException.
Definition at line 30 of file qgsserverexception.cpp.
|
inline |
Definition at line 54 of file qgsserverexception.h.