Exception: GraphQL::ParseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, line, col, query) ⇒ ParseError

Returns a new instance of ParseError.



12
13
14
15
16
17
# File 'lib/graphql.rb', line 12

def initialize(message, line, col, query)
  super(message)
  @line = line
  @col = col
  @query = query
end

Instance Attribute Details

#colObject (readonly)

Returns the value of attribute col.



11
12
13
# File 'lib/graphql.rb', line 11

def col
  @col
end

#lineObject (readonly)

Returns the value of attribute line.



11
12
13
# File 'lib/graphql.rb', line 11

def line
  @line
end

#queryObject (readonly)

Returns the value of attribute query.



11
12
13
# File 'lib/graphql.rb', line 11

def query
  @query
end