Skip to content
Permalink
Browse files
Catch geos exceptions
  • Loading branch information
m-kuhn committed Mar 29, 2017
1 parent 3176219 commit 6aeb9b7ded32faa04a7362c2abc31d80e283c4f3
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/core/qgsapplication.cpp
@@ -37,6 +37,7 @@
#include "qgsmessagelog.h"
#include "qgsannotationregistry.h"
#include "qgssettings.h"
#include "qgsgeos.h"

#include "gps/qgsgpsconnectionregistry.h"
#include "processing/qgsprocessingregistry.h"
@@ -313,6 +314,12 @@ bool QgsApplication::notify( QObject *receiver, QEvent *event )
if ( qApp->thread() == QThread::currentThread() )
QMessageBox::critical( activeWindow(), tr( "Exception" ), e.what() );
}
catch ( GEOSException &e )
{
QgsDebugMsg( "Caught unhandled GEOSException: " + e.what() );
if ( qApp->thread() == QThread::currentThread() )
QMessageBox::critical( activeWindow(), tr( "Exception" ), e.what() );
}
catch ( std::exception &e )
{
QgsDebugMsg( "Caught unhandled std::exception: " + QString::fromAscii( e.what() ) );

0 comments on commit 6aeb9b7

Please sign in to comment.