1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketchSolver_Error.h
4 // Created: 29 Mar 2015
5 // Author: Artem ZHIDKOV
7 #ifndef SketchSolver_Error_H_
8 #define SketchSolver_Error_H_
12 /** \class SketchSolver_Error
14 * \brief Collects all sketch solver error' codes
15 * as inline static functions
17 class SketchSolver_Error
20 /// The value parameter for the constraint
21 inline static const std::string& CONSTRAINTS()
23 static const std::string MY_ERROR_VALUE("Conflicting constraints");
24 return MY_ERROR_VALUE;
26 /// The entities need to have shared point, but they have not
27 inline static const std::string& NO_COINCIDENT_POINTS()
29 static const std::string MY_ERROR_VALUE("Objects should have coincident point");
30 return MY_ERROR_VALUE;
32 /// Attribute of a feature is not initialized
33 inline static const std::string& NOT_INITIALIZED()
35 static const std::string MY_ERROR_VALUE("Attribute is not initialized");
36 return MY_ERROR_VALUE;
38 /// Constraint has wrong attributes
39 inline static const std::string& INCORRECT_ATTRIBUTE()
41 static const std::string MY_ERROR_VALUE("Incorrect attribute");
42 return MY_ERROR_VALUE;
44 /// Tangency constraint has wrong attributes
45 inline static const std::string& INCORRECT_TANGENCY_ATTRIBUTE()
47 static const std::string MY_ERROR_VALUE("An arc should be an attribute of tangency constraint");
48 return MY_ERROR_VALUE;