From 8e84b443fc67c7ae71c0ca6c350ac9640491ef29 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 14 Aug 2013 12:35:03 +0000 Subject: [PATCH] In ExportToMEDX() use SMESH_TRY to normally transfer exceptions from the driver --- src/SMESH_I/SMESH_Mesh_i.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); } //================================================================================ -- 2.30.2