mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +05:00
do not catch CORBA exceptions thrown by SMESH_Mesh_i
This commit is contained in:
parent
bf7367a22f
commit
7a732fc9d1
@ -81,8 +81,6 @@
|
|||||||
#include <TopTools_MapOfShape.hxx>
|
#include <TopTools_MapOfShape.hxx>
|
||||||
#include <TopoDS_Compound.hxx>
|
#include <TopoDS_Compound.hxx>
|
||||||
|
|
||||||
#include "SMESH_TryCatch.hxx" // include after OCCT headers!
|
|
||||||
|
|
||||||
// STL Includes
|
// STL Includes
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -91,6 +89,11 @@
|
|||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
// to pass CORBA exception through SMESH_TRY
|
||||||
|
#define SMY_OWN_CATCH catch( SALOME::SALOME_Exception& se ) { throw se; }
|
||||||
|
|
||||||
|
#include "SMESH_TryCatch.hxx" // include after OCCT headers!
|
||||||
|
|
||||||
#ifdef _DEBUG_
|
#ifdef _DEBUG_
|
||||||
static int MYDEBUG = 0;
|
static int MYDEBUG = 0;
|
||||||
#else
|
#else
|
||||||
@ -1504,7 +1507,7 @@ SMESH_Mesh_i::CutListOfGroups(const SMESH::ListOfGroups& theMainGroups,
|
|||||||
if ( aType == SMESH::ALL )
|
if ( aType == SMESH::ALL )
|
||||||
aType = aGrp->GetType();
|
aType = aGrp->GetType();
|
||||||
else if ( aType != aGrp->GetType() )
|
else if ( aType != aGrp->GetType() )
|
||||||
THROW_SALOME_CORBA_EXCEPTION("UnionListOfGroups(): different group types",
|
THROW_SALOME_CORBA_EXCEPTION("CreateDimGroup(): different group types",
|
||||||
SALOME::BAD_PARAM);
|
SALOME::BAD_PARAM);
|
||||||
if ( SMESH_GroupBase_i* grp_i = SMESH::DownCast< SMESH_GroupBase_i* >( aGrp ))
|
if ( SMESH_GroupBase_i* grp_i = SMESH::DownCast< SMESH_GroupBase_i* >( aGrp ))
|
||||||
if ( SMESHDS_GroupBase* grpDS = grp_i->GetGroupDS() )
|
if ( SMESHDS_GroupBase* grpDS = grp_i->GetGroupDS() )
|
||||||
@ -1522,7 +1525,7 @@ SMESH_Mesh_i::CutListOfGroups(const SMESH::ListOfGroups& theMainGroups,
|
|||||||
if ( CORBA::is_nil( aGrp ) )
|
if ( CORBA::is_nil( aGrp ) )
|
||||||
continue;
|
continue;
|
||||||
if ( aType != aGrp->GetType() )
|
if ( aType != aGrp->GetType() )
|
||||||
THROW_SALOME_CORBA_EXCEPTION("UnionListOfGroups(): different group types",
|
THROW_SALOME_CORBA_EXCEPTION("CreateDimGroup(): different group types",
|
||||||
SALOME::BAD_PARAM);
|
SALOME::BAD_PARAM);
|
||||||
if ( SMESH_GroupBase_i* grp_i = SMESH::DownCast< SMESH_GroupBase_i* >( aGrp ))
|
if ( SMESH_GroupBase_i* grp_i = SMESH::DownCast< SMESH_GroupBase_i* >( aGrp ))
|
||||||
if ( SMESHDS_GroupBase* grpDS = grp_i->GetGroupDS() )
|
if ( SMESHDS_GroupBase* grpDS = grp_i->GetGroupDS() )
|
||||||
|
Loading…
Reference in New Issue
Block a user