Class: QgsMapServiceException

class qgis.server.QgsMapServiceException(code: str, message: str)

Bases: qgis._server.QgsOgcServiceException

Constructor for QgsMapServiceException.

Parameters
  • code (str) – HTTP error code

  • message (str) – Exception message to return to the client

QgsMapServiceException(QgsMapServiceException)

Exception class for WMS service exceptions (for compatibility only).

The most important codes are: * “InvalidFormat” * “Invalid CRS” * “LayerNotDefined” / “StyleNotDefined” * “OperationNotSupported”

Deprecated since version Use: QsgServerException