if (!aFValidator->isValid(theFeature, anArguments, anError)) {
if (anError.empty())
anError = "Unknown error.";
- anError = "Feature invalidated by \"" + aValidatorID + "\" with error: " + anError;
+ anError = aValidatorID + ": " + anError;
theFeature->setError(anError, false);
theFeature->data()->execState(ModelAPI_StateInvalidArgument);
return false;
// }
// }
//}
-
+
// check all attributes for validity
// Validity of data is checked by "Model_FeatureValidator" (kDefaultId)
// if (!aData || !aData->isValid())
if (!validate(anAttribute, aValidatorID, anError)) {
if (anError.empty())
anError = "Unknown error.";
- anError = "Attribute \"" + anAttributeID + "\" invalidated by \"" + aValidatorID + "\" with error: " + anError;
+ anError = anAttributeID + " - " + aValidatorID + ": " + anError;
theFeature->setError(anError, false);
theFeature->data()->execState(ModelAPI_StateInvalidArgument);
return false;