| 
    QGIS API Documentation
    3.14.0-Pi (9f7028fd23)
    
   | 
 
 
 
 
Go to the documentation of this file.
   18 #ifndef QGSWMSSERVICEEXCEPTION_H 
   19 #define QGSWMSSERVICEEXCEPTION_H 
  113         const QString name = parameter.
name();
 
  120             message = QStringLiteral( 
"The %1 parameter is missing." ).arg( name );
 
  125             message = QStringLiteral( 
"The %1 parameter is invalid." ).arg( name );
 
  130             message = QStringLiteral( 
"The format '%1' from %2 is not supported." ).arg( parameter.
toString(), name );
 
  135             message = QStringLiteral( 
"The SRS is not valid." );
 
  140             message = QStringLiteral( 
"The CRS is not valid." );
 
  145             message = QStringLiteral( 
"The layer '%1' does not exist." ).arg( parameter.
toString() );
 
  150             message = QStringLiteral( 
"The layer '%1' is not queryable." ).arg( parameter.
toString() );
 
  155             message = QStringLiteral( 
"The point '%1' from '%2' is invalid." ).arg( parameter.
toString(), name );
 
  175         const QMetaEnum metaEnum( QMetaEnum::fromType<QgsServiceException::ExceptionCode>() );
 
  176         QString key = metaEnum.valueToKey( 
code );
 
  179         key.replace( QStringLiteral( 
"OGC_" ), QString() );
 
  180         key.replace( QStringLiteral( 
"QGIS_" ), QString() );
 
  192   class QgsSecurityException: 
public QgsServiceException
 
  
@ QGIS_InvalidParameterValue
 
QgsBadRequestException(ExceptionCode code, const QString &message)
Constructor for QgsBadRequestException (HTTP error code 400).
 
QString name() const
Returns the name of the parameter.
 
Exception class for WMS service exceptions.
 
QString locator() const
Returns the locator.
 
QString code() const
Returns the exception code.
 
@ OGC_CurrentUpdateSequence
 
QgsSecurityException(const QString &message, const QString &locator=QString())
Constructor for QgsSecurityException (HTTP error code 403 with Security code name).
 
@ OGC_InvalidDimensionValue
 
@ OGC_MissingDimensionValue
 
QString toString(bool defaultValue=false) const
Converts the parameter into a string.
 
@ QGIS_MissingParameterValue
 
ExceptionCode
Exception codes as defined in OGC scpecifications for WMS 1.1.1 and WMS 1.3.0.
 
Exception base class for service exceptions.
 
QgsServiceException(const QString &code, const QString &message, const QString &locator=QString(), int responseCode=200)
Constructor for QgsServiceException.
 
Exception thrown in case of malformed request.
 
QString message() const
Returns the exception message.
 
@ OGC_OperationNotSupported
 
@ OGC_InvalidUpdateSequence
 
WMS parameter received from the client.