@Override public String toString() { return "the class: " + compareClass.getSimpleName() + " doesn't have a field with name: " + queryParameter.getName(); }
public QueryError(Class<T> compareClass, final QueryParameter queryParameter) { this.compareClass = compareClass; this.queryParameter = queryParameter; errorMessage = "the object: " + compareClass.getSimpleName() + " doesn't have a field with name: " + queryParameter.getName(); }