Replace Base::Exception with appropriate subclass

This commit is contained in:
wmayer
2018-11-14 19:42:10 +01:00
parent 00de5bb7ad
commit d7ec2b1368
16 changed files with 41 additions and 41 deletions

View File

@@ -390,7 +390,7 @@ void GeometryObject::addGeomFromCompound(TopoDS_Shape edgeCompound, edgeClass ca
base = BaseGeom::baseFactory(edge);
if (base == nullptr) {
Base::Console().Message("Error - GO::addGeomFromCompound - baseFactory failed for edge: %d\n",i);
throw Base::Exception("GeometryObject::addGeomFromCompound - baseFactory failed");
throw Base::ValueError("GeometryObject::addGeomFromCompound - baseFactory failed");
}
base->classOfEdge = category;
base->visible = visible;