X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_Error.h;h=2e143145437364c8cce1525f00ae10bf3673cb72;hb=3a927e455d0639a65e2bf4fd3f1dfe4459fc9608;hp=0ae33d3c60abb8c4d4ccf2f4131d273e5a43534f;hpb=f123cb42293b018c34dcd29ecdcbef3ab85041d1;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_Error.h b/src/SketchSolver/SketchSolver_Error.h index 0ae33d3c6..2e1431454 100644 --- a/src/SketchSolver/SketchSolver_Error.h +++ b/src/SketchSolver/SketchSolver_Error.h @@ -20,7 +20,7 @@ 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; } /// Constraints should use objects instead of features as attributes @@ -65,6 +65,12 @@ 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() {