code: public static GraphqlErrorBuilder newError(DataFetchingEnvironment dataFetchingEnvironment) {
          return new GraphqlErrorBuilder()
                  .location(dataFetchingEnvironment.getField().getSourceLocation())
                  .path(dataFetchingEnvironment.getExecutionStepInfo().getPath());
      }
docs: This will set up the {@link GraphQLError#getLocations()} and {@link graphql.GraphQLError#getPath()} for you from the
  fetching environment.
  
  @param dataFetchingEnvironment the data fetching environment
  
  @return a builder of {@link graphql.GraphQLError}s