graphql.GraphqlErrorBuilder Maven / Gradle / Ivy
package graphql;
import graphql.execution.DataFetcherResult;
import graphql.execution.ResultPath;
import graphql.language.SourceLocation;
import graphql.schema.DataFetchingEnvironment;
import org.jetbrains.annotations.Nullable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import static graphql.Assert.assertNotNull;
/**
* This helps you build {@link graphql.GraphQLError}s and also has a quick way to make a {@link graphql.execution.DataFetcherResult}s
* from that error.
*
* @param this base class allows you to derive new classes from this base error builder
*/
@SuppressWarnings("unchecked")
@PublicApi
public class GraphqlErrorBuilder> implements GraphQLError.Builder {
private String message;
private List