0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / Adaptor3d / Adaptor3d_CurveOnSurface.cxx
index 14112d5..1a633f2 100644 (file)
@@ -158,7 +158,7 @@ static void Hunt(const TColStd_Array1OfReal& Arr,
     Iloc = i;
   else
     if(Abs(Coord - Arr(i)) > Tol) 
-      Standard_NotImplemented::Raise("Adaptor3d_CurveOnSurface:Hunt");
+      throw Standard_NotImplemented("Adaptor3d_CurveOnSurface:Hunt");
 }
 
 //=======================================================================
@@ -1179,7 +1179,7 @@ gp_Vec Adaptor3d_CurveOnSurface::DN
     D3(U,P,V1,V2,V);
     break ;
   default:
-    Standard_NotImplemented::Raise("Adaptor3d_CurveOnSurface:DN");
+    throw Standard_NotImplemented("Adaptor3d_CurveOnSurface:DN");
     break;
   }
   return V;
@@ -1305,8 +1305,7 @@ Standard_Integer Adaptor3d_CurveOnSurface::NbKnots() const {
   if (mySurface->GetType()==GeomAbs_Plane)
     return myCurve->NbKnots();
   else {
-    Standard_NoSuchObject::Raise();
-    return 0;
+    throw Standard_NoSuchObject();
   }
 }
 
@@ -1635,7 +1634,7 @@ void Adaptor3d_CurveOnSurface::EvalFirstLastSurf()
       Ok = LocatePart_Offset(UV,DUV,mySurface,LeftBot,RightTop);
       break;
       default :
-       Standard_NotImplemented::Raise("Adaptor3d_CurveOnSurface::EvalFirstLastSurf");
+       throw Standard_NotImplemented("Adaptor3d_CurveOnSurface::EvalFirstLastSurf");
       break;
     }
   }
@@ -1673,7 +1672,7 @@ void Adaptor3d_CurveOnSurface::EvalFirstLastSurf()
       Ok = LocatePart_Offset(UV,DUV,mySurface,LeftBot,RightTop);
       break;
       default :
-       Standard_NotImplemented::Raise("Adaptor3d_CurveOnSurface::EvalFirstLastSurf");
+       throw Standard_NotImplemented("Adaptor3d_CurveOnSurface::EvalFirstLastSurf");
       break;
     }
   }