Class: QgsServerException¶
-
class
qgis.server.
QgsServerException
(message: str, responseCode: int = 500)¶ Bases:
sip.wrapper
Constructor
QgsServerException(QgsServerException)
Exception base class for server exceptions.
New in version 3.0: Enums
Methods
Formats the exception for sending to client
- return
the return HTTP response code associated with this exception
Signals
Attributes
-
formatResponse
(self) → Tuple[QByteArray, str]¶ Formats the exception for sending to client
- Returns
QByteArray The formatted response.
responseFormat: QString to store the content type of the response format.
The default implementation returns text/xml format.
-
responseCode
(self) → int¶ - Returns
the return HTTP response code associated with this exception