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

graphql.kickstart.execution.error.GenericGraphQLError Maven / Gradle / Ivy

The newest version!
package graphql.kickstart.execution.error;

import static java.util.Collections.emptyList;

import com.fasterxml.jackson.annotation.JsonIgnore;
import graphql.ErrorType;
import graphql.GraphQLError;
import graphql.language.SourceLocation;
import java.util.List;

/** @author Andrew Potter */
public class GenericGraphQLError implements GraphQLError {

  private final String message;

  public GenericGraphQLError(String message) {
    this.message = message;
  }

  @Override
  public String getMessage() {
    return message;
  }

  @Override
  @JsonIgnore
  public List getLocations() {
    return emptyList();
  }

  @Override
  @JsonIgnore
  public ErrorType getErrorType() {
    return null;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy