Salome HOME
In ExportToMEDX() use SMESH_TRY to normally transfer exceptions from the driver
authoreap <eap@opencascade.com>
Wed, 14 Aug 2013 12:35:03 +0000 (12:35 +0000)
committereap <eap@opencascade.com>
Wed, 14 Aug 2013 12:35:03 +0000 (12:35 +0000)
src/SMESH_I/SMESH_Mesh_i.cxx

index 735ab2ef7ee48d3bd7eae602576491fb43ffae40..812d3c0cdb83a5a751ef9fa17182ed741e66d24d 100644 (file)
@@ -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 );
 }
 
 //================================================================================