Exception: Gherkin::CompositeParserException

Inherits:
ParserError
  • Object
show all
Defined in:
lib/gherkin/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ CompositeParserException

Returns a new instance of CompositeParserException.



24
25
26
27
# File 'lib/gherkin/errors.rb', line 24

def initialize(errors)
  @errors = errors
  super "Parser errors:\n" + errors.map(&:message).join("\n")
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



22
23
24
# File 'lib/gherkin/errors.rb', line 22

def errors
  @errors
end