Exception: Cucumber::CucumberExpressions::OptionalIsNotAllowedInOptional
- Inherits:
-
CucumberExpressionError
- Object
- StandardError
- CucumberExpressionError
- Cucumber::CucumberExpressions::OptionalIsNotAllowedInOptional
- Defined in:
- lib/cucumber/cucumber_expressions/errors.rb
Instance Method Summary collapse
-
#initialize(node, expression) ⇒ OptionalIsNotAllowedInOptional
constructor
A new instance of OptionalIsNotAllowedInOptional.
Methods inherited from CucumberExpressionError
#build_message, #point_at, #point_at_located
Constructor Details
#initialize(node, expression) ⇒ OptionalIsNotAllowedInOptional
Returns a new instance of OptionalIsNotAllowedInOptional.
107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/cucumber/cucumber_expressions/errors.rb', line 107 def initialize(node, expression) super( ( node.start, expression, point_at_located(node), 'An optional may not contain an other optional', "If you did not mean to use an optional type you can use '\\(' to escape the '('. For more complicated expressions consider using a regular expression instead." ) ) end |