Skip to content

Commit

Permalink
Improve wmsserver error handling and exception safety
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Dec 14, 2016
1 parent 3f06605 commit 56036d2
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 179 deletions.
4 changes: 3 additions & 1 deletion src/server/qgsmapserviceexception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

#include "qgsmapserviceexception.h"

QgsMapServiceException::QgsMapServiceException( const QString& code, const QString& message ): mCode( code ), mMessage( message )
QgsMapServiceException::QgsMapServiceException( const QString& code, const QString& message ):
QgsException( message ),
mCode( code ), mMessage( message )
{

}
4 changes: 3 additions & 1 deletion src/server/qgsmapserviceexception.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

#include <QString>

#include "qgsexception.h"

/** \ingroup server
* \class QgsMapServiceException
* \brief Exception class for WMS service exceptions.
Expand All @@ -31,7 +33,7 @@
* * "OperationNotSupported"
*/

class SERVER_EXPORT QgsMapServiceException
class SERVER_EXPORT QgsMapServiceException : public QgsException
{
public:
QgsMapServiceException( const QString& code, const QString& message );
Expand Down
Loading

0 comments on commit 56036d2

Please sign in to comment.