Replace Base::Exception with appropriate subclass

This commit is contained in:
wmayer
2018-11-14 17:36:00 +01:00
parent c7f881ee43
commit d11bfed7c6
3 changed files with 18 additions and 19 deletions

View File

@@ -703,7 +703,7 @@ App::DocumentObjectExecReturn* Feature::execute(void)
{
App::DocumentObject* pcActual = Actual.getValue();
if (!pcActual)
throw Base::Exception("No actual geometry to inspect specified");
throw Base::ValueError("No actual geometry to inspect specified");
InspectActualGeometry* actual = 0;
if (pcActual->getTypeId().isDerivedFrom(Mesh::Feature::getClassTypeId())) {
@@ -719,7 +719,7 @@ App::DocumentObjectExecReturn* Feature::execute(void)
actual = new InspectActualShape(part->Shape.getShape());
}
else {
throw Base::Exception("Unknown geometric type");
throw Base::TypeError("Unknown geometric type");
}
// get a list of nominals