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

graphql.schema.idl.errors.DirectiveRedefinitionError 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.DirectiveDefinition;

import static java.lang.String.format;

@Internal
public class DirectiveRedefinitionError extends BaseError {

    public DirectiveRedefinitionError(DirectiveDefinition newEntry, DirectiveDefinition oldEntry) {
        super(oldEntry,
                format("'%s' type %s tried to redefine existing directive '%s' type %s",
                        newEntry.getName(), BaseError.lineCol(newEntry), oldEntry.getName(), BaseError.lineCol(oldEntry)
                ));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy