graphql.servlet.GenericGraphQLError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-java-servlet Show documentation
Show all versions of graphql-java-servlet Show documentation
relay.js-compatible GraphQL servlet
package graphql.servlet;
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 null;
}
@Override
@JsonIgnore
public ErrorType getErrorType() {
return null;
}
}