graphql.kickstart.execution.error.GenericGraphQLError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-java-kickstart-javax Show documentation
Show all versions of graphql-java-kickstart-javax Show documentation
relay.js-compatible GraphQL servlet
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;
}
}