Skip to content

Commit

Permalink
Update doc for QgsBadRequestException
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Jul 13, 2018
1 parent 7abe384 commit 75d44d9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/server/services/wms/qgswmsserviceexception.h
Expand Up @@ -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" ) )
{}
Expand All @@ -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 )
{}
Expand All @@ -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.