mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0026937: Eliminate NO_CXX_EXCEPTION macro support
Macro NO_CXX_EXCEPTION was removed from code. Method Raise() was replaced by explicit throw statement. Method Standard_Failure::Caught() was replaced by normal C++mechanism of exception transfer. Method Standard_Failure::Caught() is deprecated now. Eliminated empty constructors. Updated samples. Eliminate empty method ChangeValue from NCollection_Map class. Removed not operable methods from NCollection classes.
This commit is contained in:
@@ -134,21 +134,21 @@ myNbBounds(0)
|
||||
myLinCont = new GeomPlate_HSequenceOfCurveConstraint;
|
||||
myPntCont = new GeomPlate_HSequenceOfPointConstraint;
|
||||
if (myNbIter<1)
|
||||
Standard_ConstructionError::Raise("GeomPlate : Number of iteration must be >= 1");
|
||||
throw Standard_ConstructionError("GeomPlate : Number of iteration must be >= 1");
|
||||
|
||||
if (NTCurve==0)
|
||||
Standard_ConstructionError::Raise("GeomPlate : the bounds Array is null");
|
||||
throw Standard_ConstructionError("GeomPlate : the bounds Array is null");
|
||||
if (Tang->Length()==0)
|
||||
Standard_ConstructionError::Raise("GeomPlate : the constraints Array is null");
|
||||
throw Standard_ConstructionError("GeomPlate : the constraints Array is null");
|
||||
Standard_Integer nbp = 0;
|
||||
Standard_Integer i ;
|
||||
for ( i=1;i<=NTCurve;i++)
|
||||
{ nbp+=NPoints->Value(i);
|
||||
}
|
||||
if (nbp==0)
|
||||
Standard_ConstructionError::Raise("GeomPlate : the resolution is impossible if the number of constraints points is 0");
|
||||
throw Standard_ConstructionError("GeomPlate : the resolution is impossible if the number of constraints points is 0");
|
||||
if (myDegree<2)
|
||||
Standard_ConstructionError::Raise("GeomPlate ; the degree resolution must be upper of 2");
|
||||
throw Standard_ConstructionError("GeomPlate ; the degree resolution must be upper of 2");
|
||||
// Remplissage des champs passage de l'ancien constructeur au nouveau
|
||||
for(i=1;i<=NTCurve;i++)
|
||||
{ Handle(GeomPlate_CurveConstraint) Cont = new GeomPlate_CurveConstraint
|
||||
@@ -187,9 +187,9 @@ myTol3d(Tol3d),
|
||||
myTolAng(TolAng),
|
||||
myNbBounds(0)
|
||||
{ if (myNbIter<1)
|
||||
Standard_ConstructionError::Raise("GeomPlate : Number of iteration must be >= 1");
|
||||
throw Standard_ConstructionError("GeomPlate : Number of iteration must be >= 1");
|
||||
if (myDegree<2)
|
||||
Standard_ConstructionError::Raise("GeomPlate : the degree resolution must be upper of 2");
|
||||
throw Standard_ConstructionError("GeomPlate : the degree resolution must be upper of 2");
|
||||
myLinCont = new GeomPlate_HSequenceOfCurveConstraint;
|
||||
myPntCont = new GeomPlate_HSequenceOfPointConstraint;
|
||||
mySurfInitIsGive=Standard_True;
|
||||
@@ -221,9 +221,9 @@ myTol3d(Tol3d),
|
||||
myTolAng(TolAng),
|
||||
myNbBounds(0)
|
||||
{ if (myNbIter<1)
|
||||
Standard_ConstructionError::Raise("GeomPlate : Number of iteration must be >= 1");
|
||||
throw Standard_ConstructionError("GeomPlate : Number of iteration must be >= 1");
|
||||
if (myDegree<2)
|
||||
Standard_ConstructionError::Raise("GeomPlate : the degree resolution must be upper of 2");
|
||||
throw Standard_ConstructionError("GeomPlate : the degree resolution must be upper of 2");
|
||||
myLinCont = new GeomPlate_HSequenceOfCurveConstraint;
|
||||
myPntCont = new GeomPlate_HSequenceOfPointConstraint;
|
||||
mySurfInitIsGive=Standard_False;
|
||||
@@ -497,7 +497,7 @@ void GeomPlate_BuildPlateSurface::Perform()
|
||||
for (Standard_Integer l=1;l<=NTLinCont;l++)
|
||||
myInitOrder->SetValue(l,l);
|
||||
if (!CourbeJointive(myTol3d))
|
||||
{// Standard_Failure::Raise("Curves are not joined");
|
||||
{// throw Standard_Failure("Curves are not joined");
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"WARNING : Courbes non jointives a "<<myTol3d<<" pres"<<endl;
|
||||
#endif
|
||||
@@ -1527,7 +1527,7 @@ void GeomPlate_BuildPlateSurface::ComputeSurfInit()
|
||||
if ( NTPntCont != 0)
|
||||
nopt = 1; //Calcul par la methode du plan d'inertie
|
||||
else if (!CourbeJoint || NTLinCont != myNbBounds)
|
||||
{// Standard_Failure::Raise("Curves are not joined");
|
||||
{// throw Standard_Failure("Curves are not joined");
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"WARNING : Courbes non jointives a "<<myTol3d<<" pres"<<endl;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user