Search in sources :

Example 6 with AssertException

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);
    }
}
Also used : AssertException(graphql.AssertException)

Aggregations

AssertException (graphql.AssertException)6 GraphQLEnumType (graphql.schema.GraphQLEnumType)1 GraphQLInputObjectType (graphql.schema.GraphQLInputObjectType)1 GraphQLList (graphql.schema.GraphQLList)1 GraphQLNonNull (graphql.schema.GraphQLNonNull)1 GraphQLScalarType (graphql.schema.GraphQLScalarType)1 BigInteger (java.math.BigInteger)1 StringTokenizer (java.util.StringTokenizer)1