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

com.apollographql.federation.graphqljava.FederationError Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package com.apollographql.federation.graphqljava;

import graphql.ErrorClassification;
import graphql.ErrorType;
import graphql.GraphQLError;
import graphql.GraphQLException;
import graphql.language.SourceLocation;
import java.util.Collections;
import java.util.List;

public class FederationError extends GraphQLException implements GraphQLError {
  private static final List NO_WHERE =
      Collections.singletonList(new SourceLocation(-1, -1));

  FederationError(String message) {
    super(message);
  }

  @Override
  public List getLocations() {
    return NO_WHERE;
  }

  @Override
  public ErrorClassification getErrorType() {
    return ErrorType.ValidationError;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy