Exception: Cucumber::CucumberExpressions::AlternativeMayNotExclusivelyContainOptionals
- Inherits:
-
CucumberExpressionError
- Object
- StandardError
- CucumberExpressionError
- Cucumber::CucumberExpressions::AlternativeMayNotExclusivelyContainOptionals
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/lib/cucumber/cucumber_expressions/errors.rb
Instance Method Summary collapse
-
#initialize(node, expression) ⇒ AlternativeMayNotExclusivelyContainOptionals
constructor
A new instance of AlternativeMayNotExclusivelyContainOptionals.
Methods inherited from CucumberExpressionError
#build_message, #point_at, #point_at_located
Constructor Details
#initialize(node, expression) ⇒ AlternativeMayNotExclusivelyContainOptionals
Returns a new instance of AlternativeMayNotExclusivelyContainOptionals.
42 43 44 45 46 47 48 49 50 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-cucumber-expressions-15.2.0/lib/cucumber/cucumber_expressions/errors.rb', line 42 def initialize(node, expression) super(( node.start, expression, point_at_located(node), 'An alternative may not exclusively contain optionals', "If you did not mean to use an optional you can use '\\(' to escape the the '('" )) end |