Replace Base::Exception with appropriate subclass

This commit is contained in:
wmayer
2018-11-14 19:45:20 +01:00
parent d7ec2b1368
commit 9aa6a700d8
28 changed files with 273 additions and 196 deletions

View File

@@ -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);