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

graphql.schema.idl.errors.DirectiveUndeclaredError 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.Node;

import static java.lang.String.format;

@Internal
public class DirectiveUndeclaredError extends BaseError {

    public DirectiveUndeclaredError(Node element, String elementName, String directiveName) {
        super(element,
                format("'%s' %s tried to use an undeclared directive '%s'",
                        elementName, BaseError.lineCol(element), directiveName
                ));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy