mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 15:27:26 +05:00
In ExportToMEDX() use SMESH_TRY to normally transfer exceptions from the driver
This commit is contained in:
parent
3939500c74
commit
8e84b443fc
@ -2710,7 +2710,7 @@ void SMESH_Mesh_i::ExportToMEDX (const char* file,
|
|||||||
CORBA::Boolean autoDimension)
|
CORBA::Boolean autoDimension)
|
||||||
throw(SALOME::SALOME_Exception)
|
throw(SALOME::SALOME_Exception)
|
||||||
{
|
{
|
||||||
Unexpect aCatch(SALOME_SalomeException);
|
SMESH_TRY;
|
||||||
if ( _preMeshInfo )
|
if ( _preMeshInfo )
|
||||||
_preMeshInfo->FullLoadFromFile();
|
_preMeshInfo->FullLoadFromFile();
|
||||||
|
|
||||||
@ -2721,6 +2721,8 @@ void SMESH_Mesh_i::ExportToMEDX (const char* file,
|
|||||||
<< autoDimension << " )";
|
<< autoDimension << " )";
|
||||||
|
|
||||||
_impl->ExportMED( file, aMeshName.c_str(), auto_groups, theVersion, 0, autoDimension );
|
_impl->ExportMED( file, aMeshName.c_str(), auto_groups, theVersion, 0, autoDimension );
|
||||||
|
|
||||||
|
SMESH_CATCH( SMESH::throwCorbaException );
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user