]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Show proper message in GUI when a SALOME::SALOME_Exception is caught (patch from...
authorbarate <barate>
Thu, 20 Jun 2013 15:15:15 +0000 (15:15 +0000)
committerbarate <barate>
Thu, 20 Jun 2013 15:15:15 +0000 (15:15 +0000)
src/SalomeApp/SalomeApp_ExceptionHandler.cxx

index b9e3139cb09411fc321c60323a89f264c833b24a..a56afd07a0804c61eae183b24a972413ec1726a3 100644 (file)
@@ -21,6 +21,7 @@
 //
 
 #include "SalomeApp_ExceptionHandler.h"
+#include "Utils_CorbaException.hxx"
 
 #include "CASCatch.hxx"
 #include "Basics_OCCTVersion.hxx"
@@ -93,6 +94,10 @@ bool SalomeApp_ExceptionHandler::handle( QObject* o, QEvent* e )
   {
     showMessage( title, QString( e.GetMessageString() ) );
   }
+  catch( SALOME::SALOME_Exception& ex)
+  {
+    showMessage( title, QString( ex.details.text));
+  }
 #ifndef WIN32
   catch(...)
   {