Coding - Use throw instead of legacy Standard_Failure::Raise (#983)

Replace Standard_*::Raise calls with throw statements for better exception handling
This commit is contained in:
Kirill Gavrilov
2026-01-05 16:46:14 +00:00
committed by dpasukhi
parent 078dfc44ae
commit 6c6f2ceb41
16 changed files with 28 additions and 41 deletions
@@ -863,7 +863,7 @@ void BRepFill::Axe(const TopoDS_Shape& Spine,
void BRepFill::SearchOrigin(TopoDS_Wire& W, const gp_Pnt& P, const gp_Vec& Dir, const double Tol)
{
if (!W.Closed())
Standard_NoSuchObject::Raise("BRepFill::SearchOrigin : the wire must be closed");
throw Standard_NoSuchObject("BRepFill::SearchOrigin : the wire must be closed");
bool NewVertex = false;
double theparam = 1.e101, angle;