Sha256: bf7a1a96dbf1760aca26bac3dc4040f2f089506538101bffca5bc05bcee904fc

Contents?: true

Size: 501 Bytes

Versions: 26

Compression:

Stored size: 501 Bytes

Contents

'use strict';

Object.defineProperty(exports, '__esModule', {
  value: true,
});
exports.syntaxError = syntaxError;

var _GraphQLError = require('./GraphQLError.js');

/**
 * Produces a GraphQLError representing a syntax error, containing useful
 * descriptive information about the syntax error's position in the source.
 */
function syntaxError(source, position, description) {
  return new _GraphQLError.GraphQLError(`Syntax Error: ${description}`, {
    source,
    positions: [position],
  });
}

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.6 lib/clapton/javascripts/node_modules/graphql/error/syntaxError.js
clapton-0.0.5 lib/clapton/javascripts/node_modules/graphql/error/syntaxError.js
clapton-0.0.4 lib/clapton/javascripts/node_modules/graphql/error/syntaxError.js
clapton-0.0.3 lib/clapton/javascripts/node_modules/graphql/error/syntaxError.js
clapton-0.0.2 lib/clapton/javascripts/node_modules/graphql/error/syntaxError.js
clapton-0.0.1 lib/clapton/javascripts/node_modules/graphql/error/syntaxError.js