From 9863bff035b9cf9c54149ecfde1598ba7b69cc73 Mon Sep 17 00:00:00 2001 From: barate Date: Thu, 20 Jun 2013 15:15:15 +0000 Subject: [PATCH] Show proper message in GUI when a SALOME::SALOME_Exception is caught (patch from O. Mircescu, fix Mantis bug #21265) --- src/SalomeApp/SalomeApp_ExceptionHandler.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SalomeApp/SalomeApp_ExceptionHandler.cxx b/src/SalomeApp/SalomeApp_ExceptionHandler.cxx index b9e3139cb..a56afd07a 100644 --- a/src/SalomeApp/SalomeApp_ExceptionHandler.cxx +++ b/src/SalomeApp/SalomeApp_ExceptionHandler.cxx @@ -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(...) { -- 2.39.2