All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.execution.NonNullableValueCoercedAsNullException Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.execution;

import graphql.GraphQLException;
import graphql.schema.GraphQLType;
import graphql.schema.GraphQLTypeUtil;

/**
 * This is thrown if a non nullable value is coerced to a null value
 */
public class NonNullableValueCoercedAsNullException extends GraphQLException {

    public NonNullableValueCoercedAsNullException(GraphQLType graphQLType) {
        super(String.format("Null value for NonNull type '%s", GraphQLTypeUtil.getUnwrappedTypeName(graphQLType)));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy