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

graphql.servlet.GenericGraphQLError Maven / Gradle / Ivy

There is a newer version: 6.1.3
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy