0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / GeomFill / GeomFill_SweepSectionGenerator.cxx
index ed600bb..76e1782 100644 (file)
@@ -674,8 +674,7 @@ const gp_Trsf& GeomFill_SweepSectionGenerator::Transformation
   (const Standard_Integer Index) const 
 {
   if (Index > myTrsfs.Length())
-    Standard_RangeError::Raise
-      ("GeomFill_SweepSectionGenerator::Transformation");
+    throw Standard_RangeError("GeomFill_SweepSectionGenerator::Transformation");
   
   return myTrsfs(Index);
 }