Salome HOME
Issue #1005: To improve user-friendship of error-messages for features and attributes
[modules/shaper.git] / src / ModelAPI / ModelAPI_Feature.h
index b993ea254eb5b22430670cdef19eca1ea8a52fa8..71bd251d8802d78f6717193f34659fa367ddac7a 100644 (file)
@@ -63,9 +63,9 @@ class ModelAPI_Feature : public ModelAPI_Object
   virtual bool compute(const std::string& theAttributeId) { return false; };
 
   /// Registers error during the execution, causes the ExecutionFailed state
-  virtual void setError(const std::string& theError, bool isSend = true) {
-    data()->setError(theError, isSend);
-  }
+  MODELAPI_EXPORT virtual void setError(const std::string& theError,
+                                        bool isSend = true,
+                                        bool isTranslate = true);
 
   /// Returns error, arose during the execution
   virtual std::string error() const {