From: eap Date: Wed, 14 Aug 2013 12:35:03 +0000 (+0000) Subject: In ExportToMEDX() use SMESH_TRY to normally transfer exceptions from the driver X-Git-Tag: V7_3_0a1~202 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8e84b443fc67c7ae71c0ca6c350ac9640491ef29;p=modules%2Fsmesh.git In ExportToMEDX() use SMESH_TRY to normally transfer exceptions from the driver --- diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 735ab2ef7..812d3c0cd 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -2710,7 +2710,7 @@ void SMESH_Mesh_i::ExportToMEDX (const char* file, CORBA::Boolean autoDimension) throw(SALOME::SALOME_Exception) { - Unexpect aCatch(SALOME_SalomeException); + SMESH_TRY; if ( _preMeshInfo ) _preMeshInfo->FullLoadFromFile(); @@ -2721,6 +2721,8 @@ void SMESH_Mesh_i::ExportToMEDX (const char* file, << autoDimension << " )"; _impl->ExportMED( file, aMeshName.c_str(), auto_groups, theVersion, 0, autoDimension ); + + SMESH_CATCH( SMESH::throwCorbaException ); } //================================================================================