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

graphql.schema.idl.errors.OperationRedefinitionError Maven / Gradle / Ivy

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

import graphql.Internal;
import graphql.language.OperationTypeDefinition;

import static java.lang.String.format;

@Internal
public class OperationRedefinitionError extends BaseError {

    public OperationRedefinitionError(OperationTypeDefinition oldEntry, OperationTypeDefinition newEntry) {
        super(oldEntry, format("There is already an operation '%s' defined %s.  The offending new one is here %s",
                oldEntry.getName(), lineCol(oldEntry), lineCol(newEntry)));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy