Salome HOME
Validators return InfoMessage instead of string as an error
[modules/shaper.git] / src / GeomValidators / GeomValidators_Face.cpp
index d3b075fde59c5f4d976d512719cf50fca579bc96..391ae4f827232caa1f05d6dd197d5d13112aaa7a 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <GeomAbs_SurfaceType.hxx>
 
-#include <Events_Error.h>
+#include <Events_InfoMessage.h>
 
 #include <QString>
 #include <QMap>
@@ -28,13 +28,13 @@ GeomAbs_SurfaceType faceType(const std::string& theType)
   if (MyFaceTypes.find(aType) != MyFaceTypes.end())
     return MyFaceTypes[aType];
   
-  Events_Error::send("Face type defined in XML is not implemented!");
+  Events_InfoMessage("GeomValidators_Face", "Face type defined in XML is not implemented!").send();
   return GeomAbs_Plane;
 }
 
 bool GeomValidators_Face::isValid(const AttributePtr& theAttribute,
                                   const std::list<std::string>& theArguments,
-                                  std::string& theError) const
+                                  Events_InfoMessage& theError) const
 {
   std::string anAttributeType = theAttribute->attributeType();
   if (anAttributeType != ModelAPI_AttributeSelection::typeId()) {