Salome HOME
Validators for Parameters values and expressions
[modules/shaper.git] / src / ModelAPI / ModelAPI_Feature.h
index 5572bc08d4147cf49467f2fdc5563ed1ba473ab1..b80583544021bd7afc1f74b9129df94f246166f5 100644 (file)
@@ -58,8 +58,13 @@ 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) {
-    data()->setError(theError);
+  virtual void setError(const std::string& theError, bool isSend = true) {
+    data()->setError(theError, isSend);
+  }
+
+  /// Returns error, arose during the execution
+  virtual std::string error() const {
+    return data()->error();
   }
 
   /// returns the current results of the feature