Salome HOME
Fix problem with unit tests on CentOS
[modules/shaper.git] / src / SketchSolver / SketchSolver_Error.h
index 0ae33d3c60abb8c4d4ccf2f4131d273e5a43534f..a4fe899451b0339d61c03287085b45402d278cb1 100644 (file)
@@ -20,13 +20,23 @@ class SketchSolver_Error
   /// The value parameter for the constraint
   inline static const std::string& CONSTRAINTS()
   {
-    static const std::string MY_ERROR_VALUE("Conflicting constraints");
+    static const std::string MY_ERROR_VALUE("The constraint is conflicting with others. "
+      "To fix this, you can either undo your operation or remove a conflicting constraint.");
+    return MY_ERROR_VALUE;
+  }
+  /// Cyclic dependency of copied features with their originals
+  inline static const std::string& INFINITE_LOOP()
+  {
+    static const std::string MY_ERROR_VALUE(
+      "There is a circular reference between copied sketch entities and their originals. "
+      "To fix this, you can either undo your operation or remove wrong constraint.");
     return MY_ERROR_VALUE;
   }
   /// Constraints should use objects instead of features as attributes
   inline static const std::string& NEED_OBJECT_NOT_FEATURE()
   {
-    static const std::string MY_ERROR_VALUE("Constraint should be based on object instead of feature");
+    static const std::string
+      MY_ERROR_VALUE("Constraint should be based on object instead of feature");
     return MY_ERROR_VALUE;
   }
   /// The entities need to have shared point, but they have not
@@ -65,6 +75,14 @@ class SketchSolver_Error
     static const std::string MY_ERROR_VALUE("Entity already fixed");
     return MY_ERROR_VALUE;
   }
+  /// Tangency constraint has been built with wrong attributes
+  /// (for example, line and arc have two coincident points)
+  inline static const std::string& TANGENCY_FAILED()
+  {
+    static const std::string
+      MY_ERROR_VALUE("Unable to create tangency constraint on given attributes");
+    return MY_ERROR_VALUE;
+  }
   /// Crash in SolveSpace
   inline static const std::string& SOLVESPACE_CRASH()
   {