Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update doc for QgsBadRequestException
  • Loading branch information
pblottiere committed Jul 13, 2018
1 parent 75d44d9 commit 09ef8ea
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/server/services/wfs/qgswfsserviceexception.h
Expand Up @@ -33,11 +33,18 @@ namespace QgsWfs
class QgsServiceException : public QgsOgcServiceException
{
public:

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

/**
* Constructor.
*/
QgsServiceException( const QString &code, const QString &message, const QString &locator,
int responseCode = 200 )
: QgsOgcServiceException( code, message, locator, responseCode, QStringLiteral( "1.2.0" ) )
Expand All @@ -54,6 +61,10 @@ namespace QgsWfs
class QgsSecurityAccessException: public QgsServiceException
{
public:

/**
* Constructor.
*/
QgsSecurityAccessException( const QString &message, const QString &locator = QString() )
: QgsServiceException( QStringLiteral( "Security" ), message, locator, 403 )
{}
Expand All @@ -67,6 +78,10 @@ namespace QgsWfs
class QgsRequestNotWellFormedException: public QgsServiceException
{
public:

/**
* Constructor.
*/
QgsRequestNotWellFormedException( const QString &message, const QString &locator = QString() )
: QgsServiceException( QStringLiteral( "RequestNotWellFormed" ), message, locator, 400 )
{}
Expand All @@ -80,6 +95,10 @@ namespace QgsWfs
class QgsBadRequestException: public QgsServiceException
{
public:

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

0 comments on commit 09ef8ea

Please sign in to comment.