0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / GccAna / GccAna_Lin2dTanPer.cxx
index 6cb7b88..63560f2 100644 (file)
@@ -145,7 +145,7 @@ GccAna_Lin2dTanPer::
 
    if (Qualified1.IsEnclosed()) {
 // ============================
-     GccEnt_BadQualifier::Raise();
+     throw GccEnt_BadQualifier();
    }
    else if (Qualified1.IsEnclosing()) {
 // ==================================
@@ -215,7 +215,7 @@ GccAna_Lin2dTanPer::
 
    if (Qualified1.IsEnclosed()) {
 // ============================
-     GccEnt_BadQualifier::Raise();
+     throw GccEnt_BadQualifier();
    }
    else if (Qualified1.IsEnclosing()) {
 // ==================================
@@ -268,15 +268,15 @@ Standard_Boolean GccAna_Lin2dTanPer::
 Standard_Integer GccAna_Lin2dTanPer::
    NbSolutions () const 
 {
-  if (!WellDone) { StdFail_NotDone::Raise(); } 
+  if (!WellDone) { throw StdFail_NotDone(); } 
   return NbrSol;
 }
 
 gp_Lin2d GccAna_Lin2dTanPer::
    ThisSolution (const Standard_Integer Index) const 
 {
-  if (!WellDone) { StdFail_NotDone::Raise(); } 
-  if (Index <= 0 || Index > NbrSol) { Standard_RangeError::Raise(); }
+  if (!WellDone) { throw StdFail_NotDone(); } 
+  if (Index <= 0 || Index > NbrSol) { throw Standard_RangeError(); }
   return linsol(Index);
 }
 
@@ -284,8 +284,8 @@ void GccAna_Lin2dTanPer::
   WhichQualifier(const Standard_Integer Index   ,
                       GccEnt_Position& Qualif1 ) const
 {
-  if (!WellDone) { StdFail_NotDone::Raise(); }
-  if (Index <= 0 ||Index > NbrSol) { Standard_OutOfRange::Raise(); }
+  if (!WellDone) { throw StdFail_NotDone(); }
+  if (Index <= 0 ||Index > NbrSol) { throw Standard_OutOfRange(); }
   else {
     Qualif1 = qualifier1(Index);
   }
@@ -296,8 +296,8 @@ void GccAna_Lin2dTanPer::
               Standard_Real& ParSol,
               Standard_Real& ParArg,
               gp_Pnt2d& Pnt) const{
-   if (!WellDone) { StdFail_NotDone::Raise(); }
-   else if (Index <= 0 ||Index > NbrSol) { Standard_OutOfRange::Raise(); }
+   if (!WellDone) { throw StdFail_NotDone(); }
+   else if (Index <= 0 ||Index > NbrSol) { throw Standard_OutOfRange(); }
    else {
      ParSol = par1sol(Index);
      ParArg = pararg1(Index);
@@ -310,8 +310,8 @@ void GccAna_Lin2dTanPer::
                   Standard_Real& ParSol,
                   Standard_Real& ParArg,
                   gp_Pnt2d& PntSol) const {
-   if (!WellDone) { StdFail_NotDone::Raise(); }
-   else if (Index <= 0 ||Index > NbrSol) { Standard_OutOfRange::Raise(); }
+   if (!WellDone) { throw StdFail_NotDone(); }
+   else if (Index <= 0 ||Index > NbrSol) { throw Standard_OutOfRange(); }
    else {
      ParSol = par2sol(Index);
      ParArg = pararg2(Index);