Skip to content
Permalink
Browse files

Improve wmsserver error handling and exception safety

  • Loading branch information
Hugo Mercier
Hugo Mercier committed Dec 14, 2016
1 parent 3f06605 commit 56036d29fe2b6789e9b135647c9a465da0031342
Showing with 125 additions and 179 deletions.
  1. +3 −1 src/server/qgsmapserviceexception.cpp
  2. +3 −1 src/server/qgsmapserviceexception.h
  3. +72 −134 src/server/qgswmsserver.cpp
  4. +47 −43 src/server/qgswmsserver.h
@@ -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 )
{

}
@@ -20,6 +20,8 @@

#include <QString>

#include "qgsexception.h"

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

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

0 comments on commit 56036d2

Please sign in to comment.
You can’t perform that action at this time.