Skip to content

Commit

Permalink
Update doc for QgsWcsServiceException
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Jul 13, 2018
1 parent 57b23dc commit 411ee19
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/server/services/wcs/qgswcsserviceexception.h
Expand Up @@ -33,11 +33,18 @@ namespace QgsWcs
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 QgsWcs
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 QgsWcs
class QgsRequestNotWellFormedException: public QgsServiceException
{
public:

/**
* Constructor
*/
QgsRequestNotWellFormedException( const QString &message, const QString &locator = QString() )
: QgsServiceException( QStringLiteral( "RequestNotWellFormed" ), message, locator, 400 )
{}
Expand Down

0 comments on commit 411ee19

Please sign in to comment.