Replace Base::Exception with appropriate subclass
This commit is contained in:
@@ -66,7 +66,7 @@ App::DocumentObjectExecReturn *Part::Polygon::execute(void)
|
||||
poly.Close();
|
||||
|
||||
if (!poly.IsDone())
|
||||
throw Base::Exception("Cannot create polygon because less than two vetices are given");
|
||||
throw Base::CADKernelError("Cannot create polygon because less than two vertices are given");
|
||||
TopoDS_Wire wire = poly.Wire();
|
||||
this->Shape.setValue(wire);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user