Salome HOME
Fix for exception on deletion of a Part from PartSet when it is active
[modules/shaper.git] / src / Model / Model_AttributeValidator.h
index eea6cda4b33f65478fd85a7087b1e576c883778f..0379fbe4e391565cfb3036b0176f13dcc9d9b7fb 100644 (file)
@@ -22,10 +22,11 @@ class Model_AttributeValidator : public ModelAPI_AttributeValidator
 public:
   /// \param theAttribute the checked attribute
   /// \param theArguments arguments of the attribute
+  /// \param theError erros message produced by validator to the user if it fails
   /// \returns true if attribute is valid
   MODEL_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
                                     const std::list<std::string>& theArguments,
-                                    std::string& theError) const;
+                                    Events_InfoMessage& theError) const;
 };
 
 #endif // Model_AttributeValidator_H