Exception: Gherkin3::UnexpectedEOFException

Inherits:
ParserException show all
Defined in:
lib/gherkin3/errors.rb

Instance Attribute Summary

Attributes inherited from ParserException

#location

Instance Method Summary collapse

Constructor Details

#initialize(received_token, expected_token_types, state_comment) ⇒ UnexpectedEOFException

Returns a new instance of UnexpectedEOFException.



40
41
42
43
# File 'lib/gherkin3/errors.rb', line 40

def initialize(received_token, expected_token_types, state_comment)
  message = "unexpected end of file, expected: #{expected_token_types.join(", ")}"
  super(message, received_token.location)
end