Salome HOME
Validators for Parameters values and expressions
[modules/shaper.git] / src / Model / Model_Data.h
index 93de6977de7bb6cd633575d623c99ecb60a3d36f..4e96a5be5c65e126cc2352ca2fc2f07e72904e44 100644 (file)
@@ -163,7 +163,10 @@ class Model_Data : public ModelAPI_Data
   MODEL_EXPORT virtual ModelAPI_ExecState execState();
 
   /// Registers error during the execution, causes the ExecutionFailed state
-  MODEL_EXPORT virtual void setError(const std::string& theError);
+  MODEL_EXPORT virtual void setError(const std::string& theError, bool theSend = true);
+
+  /// Registers error during the execution, causes the ExecutionFailed state
+  MODEL_EXPORT virtual std::string error() const;
 
   /// Returns the identifier of feature-owner, unique in this document
   MODEL_EXPORT virtual int featureId() const;