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.



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

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.



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

def col
  @col
end

#lineObject (readonly)

Returns the value of attribute line.



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

def line
  @line
end

#queryObject (readonly)

Returns the value of attribute query.



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

def query
  @query
end