0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / LocOpe / LocOpe_BuildWires.cxx
index dd2264a..a4d8f26 100644 (file)
@@ -139,7 +139,7 @@ void LocOpe_BuildWires::Perform(const TopTools_ListOfShape& L,
       }
 
       if (!anIterl.More()) {
-       Standard_ConstructionError::Raise();
+       throw Standard_ConstructionError();
       }
       const TopoDS_Edge& theEdge = TopoDS::Edge(anIterl.Value());
       TopoDS_Vertex Vf,Vl;
@@ -232,7 +232,7 @@ Standard_Boolean LocOpe_BuildWires::IsDone() const
 const TopTools_ListOfShape& LocOpe_BuildWires::Result () const
 {
   if (!myDone) {
-    StdFail_NotDone::Raise();
+    throw StdFail_NotDone();
   }
   return myRes;
 }