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

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

The newest version!
package graphql.schema.idl.errors;

import graphql.Internal;
import graphql.language.TypeDefinition;

import static java.lang.String.format;

@Internal
public class TypeRedefinitionError extends BaseError {

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy