Replace Base::Exception with appropriate subclass

This commit is contained in:
wmayer
2018-11-14 23:17:42 +01:00
parent e02695b91f
commit 7dc13bd2d6
4 changed files with 8 additions and 9 deletions

View File

@@ -111,10 +111,10 @@ DocumentObject* GeoFeatureGroupExtension::getGroupOfObject(const DocumentObject*
}
Base::Placement GeoFeatureGroupExtension::globalGroupPlacement() {
if(getExtendedObject()->isRecomputing())
throw Base::Exception("Global placement cannot be calculated on recompute");
throw Base::RuntimeError("Global placement cannot be calculated on recompute");
return recursiveGroupPlacement(this);
}
@@ -217,7 +217,7 @@ void GeoFeatureGroupExtension::extensionOnChanged(const Property* p) {
//if an error was found we need to correct the values and inform the user
if(error) {
Group.setValues(corrected);
throw Base::Exception("Object can only be in a single GeoFeatureGroup");
throw Base::RuntimeError("Object can only be in a single GeoFeatureGroup");
}
}
}