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

graphql.execution.OneOfNullValueException Maven / Gradle / Ivy

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

import graphql.ErrorType;
import graphql.GraphQLError;
import graphql.GraphQLException;
import graphql.PublicApi;
import graphql.language.SourceLocation;

import java.util.List;

/**
 * The input map to One Of Input Types MUST only have 1 entry with a non null value
 */
@PublicApi
public class OneOfNullValueException extends GraphQLException implements GraphQLError {

    public OneOfNullValueException(String message) {
        super(message);
    }

    @Override
    public List getLocations() {
        return null;
    }

    @Override
    public ErrorType getErrorType() {
        return ErrorType.ValidationError;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy