Exception: Gherkin::Parser::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- Gherkin::Parser::ParseError
- Defined in:
- lib/gherkin/parser/parser.rb
Instance Method Summary collapse
-
#initialize(state, new_state, expected_states, uri, line) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(state, new_state, expected_states, uri, line) ⇒ ParseError
Returns a new instance of ParseError.
9 10 11 |
# File 'lib/gherkin/parser/parser.rb', line 9 def initialize(state, new_state, expected_states, uri, line) super("Parse error at #{uri}:#{line}. Found #{new_state} when expecting one of: #{expected_states.join(', ')}. (Current state: #{state}).") end |