Exception: Gherkin3::ParserException

Inherits:
ParserError
  • Object
show all
Defined in:
lib/gherkin3/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, location) ⇒ ParserException

Returns a new instance of ParserException.



7
8
9
10
# File 'lib/gherkin3/errors.rb', line 7

def initialize(message, location)
  @location = location
  super("(#{location[:line]}:#{location[:column] || 0}): #{message}")
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



5
6
7
# File 'lib/gherkin3/errors.rb', line 5

def location
  @location
end