-// Copyright (C) 2014-2017 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#ifndef SketchSolver_Error_H_
/// The value parameter for the constraint
inline static const std::string& 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.");
+ static const std::string MY_ERROR_VALUE("<b>The constraint is conflicting with others. "
+ "To fix this, you can either <font color='red'>undo (Ctrl+Z)</font> your operation or "
+ "<font color='red'>remove</font> a conflicting constraint.</b>");
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.");
+ "<b>There is a circular reference between copied sketch entities and their originals. "
+ "To fix this, you can either <font color='red'>undo (Ctrl+Z)</font> your operation or "
+ "<font color='red'>remove</font> wrong constraint.</b>");
return MY_ERROR_VALUE;
}
/// Constraints should use objects instead of features as attributes
/// Crash in SolveSpace
inline static const std::string& SOLVESPACE_CRASH()
{
- static const std::string MY_ERROR_VALUE("Caution: SolveSpace crash! Constraints are wrong");
+ static const std::string MY_ERROR_VALUE("Caution: SolveSpace crashed! Constraints are wrong");
return MY_ERROR_VALUE;
}
/// Constraint has wrong 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;
+ }
};
#endif