Fix error description passed via exception

This commit is contained in:
eap 2014-02-18 13:56:25 +04:00
parent 7a732fc9d1
commit fad37730ee

View File

@ -1507,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("CreateDimGroup(): different group types", THROW_SALOME_CORBA_EXCEPTION("CutListOfGroups(): 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() )
@ -1525,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("CreateDimGroup(): different group types", THROW_SALOME_CORBA_EXCEPTION("CutListOfGroups(): 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() )