+ /// Mirror constraint has wrong attributes
+ inline static const std::string& INCORRECT_MIRROR_ATTRIBUTE()
+ {
+ static const std::string MY_ERROR_VALUE("Mirror constraint has wrong attributes");
+ return MY_ERROR_VALUE;
+ }
+ /// Entity is already fixed
+ inline static const std::string& ALREADY_FIXED()
+ {
+ 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()
+ {
+ static const std::string MY_ERROR_VALUE("Caution: SolveSpace crashed! Constraints are wrong");
+ return MY_ERROR_VALUE;
+ }
+ /// Constraint has wrong type
+ inline static const std::string& WRONG_CONSTRAINT_TYPE()
+ {
+ static const std::string MY_ERROR_VALUE("Unsupported type of constraint");
+ return MY_ERROR_VALUE;
+ }
+ /// Sketch contains degenerated geometry
+ inline static const std::string& DEGENERATED_GEOMETRY()
+ {
+ static const std::string MY_ERROR_VALUE(
+ "The set of constraints lead to degenerated geometry. "
+ "To fix this, you can either undo your operation or "
+ "remove a constraint or the degenerated geometry.");
+ return MY_ERROR_VALUE;
+ }