Skip to content

Commit

Permalink
Remove old constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Mar 28, 2019
1 parent cbe73c1 commit bf02a05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/server/services/wms/qgswmsparameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ namespace QgsWms

void QgsWmsParameters::raiseError( const QString &msg ) const
{
throw QgsBadRequestException( QStringLiteral( "Invalid WMS Parameter" ), msg );
throw QgsBadRequestException( QgsServiceException::QGIS_INVALID_PARAMETER_VALUE, msg );
}

QgsWmsParameter QgsWmsParameters::idParameter( const QgsWmsParameter::Name name, const int id ) const
Expand Down
4 changes: 0 additions & 4 deletions src/server/services/wms/qgswmsserviceexception.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,6 @@ namespace QgsWms
* \param message Exception message to return to the client
* \param locator Locator attribute according to OGC specifications
*/
QgsBadRequestException( const QString &code, const QString &message, const QString &locator = QString() )
: QgsServiceException( code, message, locator, 400 )
{}

QgsBadRequestException( ExceptionCode code, const QString &message )
: QgsServiceException( code, message, 400 )
{}
Expand Down

0 comments on commit bf02a05

Please sign in to comment.