checks the parameters and return an error string if the parameter
values are invalid, otherwise it returns null,
also if some other fields should be set after setting the parameters
you can do it in this method
if we do not override this method all of the square containing the line of edge will belong
to the edge, also if we put a vertex on that place,( in the getComponentAt);
this method was basically override for the status::_AddEdge