Exception: Gherkin3::ParserException
- Inherits:
-
ParserError
- Object
- StandardError
- ParserError
- Gherkin3::ParserException
- Defined in:
- lib/gherkin3/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/gherkin3/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/gherkin3/errors.rb', line 5 def location @location end |