Exception: GraphQL::SyntaxError

Inherits:
Error
  • Object
show all
Defined in:
lib/graphql.rb

Overview

The query couldn’t be parsed.

Instance Method Summary collapse

Constructor Details

#initialize(line, col, string) ⇒ SyntaxError

Returns a new instance of SyntaxError.



83
84
85
86
# File 'lib/graphql.rb', line 83

def initialize(line, col, string)
  lines = string.split("\n")
  super("Syntax Error at (#{line}, #{col}), check usage: #{string}")
end