mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-03 19:34:53 +08:00
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:
committed by
dpasukhi
parent
078dfc44ae
commit
6c6f2ceb41
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user