Skip to content
Permalink
Browse files

Update doc for QgsBadRequestException

  • Loading branch information
pblottiere committed Jul 8, 2018
1 parent 7abe384 commit 75d44d9082dc6e40ea3f488ad19ae82a85424860
Showing with 15 additions and 2 deletions.
  1. +15 −2 src/server/services/wms/qgswmsserviceexception.h
@@ -39,11 +39,18 @@ namespace QgsWms
class QgsServiceException : public QgsOgcServiceException
{
public:

/**
* Constructor.
*/
QgsServiceException( const QString &code, const QString &message, const QString &locator = QString(),
int responseCode = 200 )
: QgsOgcServiceException( code, message, locator, responseCode, QStringLiteral( "1.3.0" ) )
{}

/**
* Constructor.
*/
QgsServiceException( const QString &code, const QString &message, int responseCode )
: QgsOgcServiceException( code, message, QString(), responseCode, QStringLiteral( "1.3.0" ) )
{}
@@ -58,6 +65,10 @@ namespace QgsWms
class QgsSecurityException: public QgsServiceException
{
public:

/**
* Constructor.
*/
QgsSecurityException( const QString &message, const QString &locator = QString() )
: QgsServiceException( QStringLiteral( "Security" ), message, locator, 403 )
{}
@@ -71,12 +82,14 @@ namespace QgsWms
class QgsBadRequestException: public QgsServiceException
{
public:

/**
* Constructor.
*/
QgsBadRequestException( const QString &code, const QString &message, const QString &locator = QString() )
: QgsServiceException( code, message, locator, 400 )
{}
};


} // namespace QgsWms

#endif

0 comments on commit 75d44d9

Please sign in to comment.
You can’t perform that action at this time.