Exception: Gherkin::ParserException
- Inherits:
-
ParserError
- Object
- StandardError
- ParserError
- Gherkin::ParserException
- Defined in:
- lib/gherkin/errors.rb
Direct Known Subclasses
AstBuilderException, NoSuchLanguageException, UnexpectedEOFException, UnexpectedTokenException
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(message, location) ⇒ ParserException
constructor
A new instance of ParserException.
Constructor Details
#initialize(message, location) ⇒ ParserException
Returns a new instance of ParserException.
7 8 9 10 |
# File 'lib/gherkin/errors.rb', line 7 def initialize(, location) @location = location super("(#{location[:line]}:#{location[:column] || 0}): #{}") end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
5 6 7 |
# File 'lib/gherkin/errors.rb', line 5 def location @location end |