0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / GProp / GProp_PEquation.cxx
index c318be8..ee4a20a 100644 (file)
@@ -130,22 +130,22 @@ Standard_Boolean GProp_PEquation::IsSpace() const {
 }
 
 gp_Pln  GProp_PEquation::Plane() const {
-  if (!IsPlanar()) Standard_NoSuchObject::Raise();
+  if (!IsPlanar()) throw Standard_NoSuchObject();
   return gp_Pln(g,v1);
 }
 gp_Lin  GProp_PEquation::Line() const {
-  if (!IsLinear()) Standard_NoSuchObject::Raise();
+  if (!IsLinear()) throw Standard_NoSuchObject();
   return gp_Lin(g,gp_Dir(v1));  
 }
 
 gp_Pnt  GProp_PEquation::Point() const {
-  if (!IsPoint()) Standard_NoSuchObject::Raise();
+  if (!IsPoint()) throw Standard_NoSuchObject();
   return g;
 }
 
 void GProp_PEquation::Box(gp_Pnt& P  , gp_Vec& V1,
                             gp_Vec& V2 , gp_Vec& V3) const {
-  if (!IsSpace()) Standard_NoSuchObject::Raise();
+  if (!IsSpace()) throw Standard_NoSuchObject();
   P = g;
   V1 = v1;
   V2 = v2;