Salome HOME
Error management -- Feature validator returns an error.
[modules/shaper.git] / src / ModelAPI / ModelAPI_FeatureValidator.h
index 5d6eb3b1c49d35733171e12671e2053047943460..9b529e9db9567d3e0e4ad423555fe6b5037a79d0 100644 (file)
@@ -30,7 +30,8 @@ class MODELAPI_EXPORT ModelAPI_FeatureValidator : public ModelAPI_Validator
   /// \param theFeature the validated feature
   /// \param theArguments list of string, feature attribute names: dependent attributes
   virtual bool isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
-    const std::list<std::string>& theArguments) const = 0;
+                       const std::list<std::string>& theArguments,
+                       std::string& theError = std::string()) const = 0;
 
   /// Returns true if the attribute in feature is not obligatory for the feature execution
   virtual bool isNotObligatory(std::string theFeature, std::string theAttribute) = 0;