use of graphql.AssertException in project graphql-java by graphql-java.
the class GraphQLInputObjectType method buildMap.
private void buildMap(List<GraphQLInputObjectField> fields) {
for (GraphQLInputObjectField field : fields) {
String name = field.getName();
if (fieldMap.containsKey(name))
throw new AssertException("field " + name + " redefined");
fieldMap.put(name, field);
}
}
Aggregations