20 #ifndef SketchSolver_Error_H_
21 #define SketchSolver_Error_H_
36 static const std::string MY_ERROR_VALUE(
"<b>The constraint is conflicting with others. "
37 "To fix this, you can either <font color='red'>undo (Ctrl+Z)</font> your operation or "
38 "<font color='red'>remove</font> a conflicting constraint.</b>");
39 return MY_ERROR_VALUE;
44 static const std::string MY_ERROR_VALUE(
45 "<b>There is a circular reference between copied sketch entities and their originals. "
46 "To fix this, you can either <font color='red'>undo (Ctrl+Z)</font> your operation or "
47 "<font color='red'>remove</font> wrong constraint.</b>");
48 return MY_ERROR_VALUE;
53 static const std::string
54 MY_ERROR_VALUE(
"Constraint should be based on object instead of feature");
55 return MY_ERROR_VALUE;
60 static const std::string MY_ERROR_VALUE(
"Objects should have coincident point");
61 return MY_ERROR_VALUE;
66 static const std::string MY_ERROR_VALUE(
"Attribute is not initialized");
67 return MY_ERROR_VALUE;
72 static const std::string MY_ERROR_VALUE(
"Incorrect attribute");
73 return MY_ERROR_VALUE;
78 static const std::string MY_ERROR_VALUE(
"An arc should be an attribute of tangency constraint");
79 return MY_ERROR_VALUE;
84 static const std::string MY_ERROR_VALUE(
"Mirror constraint has wrong attributes");
85 return MY_ERROR_VALUE;
90 static const std::string MY_ERROR_VALUE(
"Entity already fixed");
91 return MY_ERROR_VALUE;
97 static const std::string
98 MY_ERROR_VALUE(
"Unable to create tangency constraint on given attributes");
99 return MY_ERROR_VALUE;
104 static const std::string MY_ERROR_VALUE(
"Caution: SolveSpace crashed! Constraints are wrong");
105 return MY_ERROR_VALUE;
110 static const std::string MY_ERROR_VALUE(
"Unsupported type of constraint");
111 return MY_ERROR_VALUE;
116 static const std::string MY_ERROR_VALUE(
117 "The set of constraints lead to degenerated geometry. "
118 "To fix this, you can either undo your operation or "
119 "remove a constraint or the degenerated geometry.");
120 return MY_ERROR_VALUE;
Collects all sketch solver error' codes as inline static functions.
Definition: SketchSolver_Error.h:31
static const std::string & INCORRECT_MIRROR_ATTRIBUTE()
Mirror constraint has wrong attributes.
Definition: SketchSolver_Error.h:82
static const std::string & INCORRECT_ATTRIBUTE()
Constraint has wrong attributes.
Definition: SketchSolver_Error.h:70
static const std::string & DEGENERATED_GEOMETRY()
Sketch contains degenerated geometry.
Definition: SketchSolver_Error.h:114
static const std::string & NO_COINCIDENT_POINTS()
The entities need to have shared point, but they have not.
Definition: SketchSolver_Error.h:58
static const std::string & WRONG_CONSTRAINT_TYPE()
Constraint has wrong type.
Definition: SketchSolver_Error.h:108
static const std::string & ALREADY_FIXED()
Entity is already fixed.
Definition: SketchSolver_Error.h:88
static const std::string & NEED_OBJECT_NOT_FEATURE()
Constraints should use objects instead of features as attributes.
Definition: SketchSolver_Error.h:51
static const std::string & INCORRECT_TANGENCY_ATTRIBUTE()
Tangency constraint has wrong attributes.
Definition: SketchSolver_Error.h:76
static const std::string & NOT_INITIALIZED()
Attribute of a feature is not initialized.
Definition: SketchSolver_Error.h:64
static const std::string & SOLVESPACE_CRASH()
Crash in SolveSpace.
Definition: SketchSolver_Error.h:102
static const std::string & CONSTRAINTS()
The value parameter for the constraint.
Definition: SketchSolver_Error.h:34
static const std::string & TANGENCY_FAILED()
Tangency constraint has been built with wrong attributes (for example, line and arc have two coincide...
Definition: SketchSolver_Error.h:95
static const std::string & INFINITE_LOOP()
Cyclic dependency of copied features with their originals.
Definition: SketchSolver_Error.h:42