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

com.apollographql.federation.graphqljava.exceptions.MultipleFederationLinksException Maven / Gradle / Ivy

package com.apollographql.federation.graphqljava.exceptions;

import graphql.language.Directive;
import java.util.List;
import java.util.stream.Collectors;

/** Exception thrown when schema defines multiple `@link` directives importing federation spec. */
public class MultipleFederationLinksException extends RuntimeException {

  public MultipleFederationLinksException(List directives) {
    super(
        "Schema imports multiple federation specs: "
            + directives.stream().map(Directive::toString).collect(Collectors.joining()));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy