Exception: Gherkin::UnexpectedTokenException
- Inherits:
-
ParserException
- Object
- StandardError
- ParserError
- ParserException
- Gherkin::UnexpectedTokenException
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/errors.rb
Instance Attribute Summary
Attributes inherited from ParserException
Instance Method Summary collapse
-
#initialize(received_token, expected_token_types, state_comment) ⇒ UnexpectedTokenException
constructor
A new instance of UnexpectedTokenException.
Constructor Details
#initialize(received_token, expected_token_types, state_comment) ⇒ UnexpectedTokenException
Returns a new instance of UnexpectedTokenException.
33 34 35 36 37 38 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/errors.rb', line 33 def initialize(received_token, expected_token_types, state_comment) = "expected: #{expected_token_types.join(", ")}, got '#{received_token.token_value.strip}'" column = received_token.location[:column] location = (column.nil? || column.zero?) ? {line: received_token.location[:line], column: received_token.line.indent + 1} : received_token.location super(, location) end |