Exception: Cucumber::CucumberExpressions::AlternationNotAllowedInOptional
- Inherits:
-
CucumberExpressionError
- Object
- StandardError
- CucumberExpressionError
- Cucumber::CucumberExpressions::AlternationNotAllowedInOptional
- 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(expression, current) ⇒ AlternationNotAllowedInOptional
constructor
A new instance of AlternationNotAllowedInOptional.
Methods inherited from CucumberExpressionError
#build_message, #point_at, #point_at_located
Constructor Details
#initialize(expression, current) ⇒ AlternationNotAllowedInOptional
Returns a new instance of AlternationNotAllowedInOptional.
142 143 144 145 146 147 148 149 150 |
# 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 142 def initialize(expression, current) super(( current.start, expression, point_at_located(current), "An alternation can not be used inside an optional", "You can use '\\/' to escape the the '/'" )) end |