com.apollographql.federation.graphqljava.FederationError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of federation-graphql-java-support Show documentation
Show all versions of federation-graphql-java-support Show documentation
GraphQL Java server support for Apollo Federation
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;
}
}