Exception: Cucumber::CucumberExpressions::ParameterIsNotAllowedInOptional
- Inherits:
-
CucumberExpressionError
- Object
- StandardError
- CucumberExpressionError
- Cucumber::CucumberExpressions::ParameterIsNotAllowedInOptional
- Defined in:
- lib/cucumber/cucumber_expressions/errors.rb
Instance Method Summary collapse
-
#initialize(node, expression) ⇒ ParameterIsNotAllowedInOptional
constructor
A new instance of ParameterIsNotAllowedInOptional.
Methods inherited from CucumberExpressionError
#build_message, #point_at, #point_at_located
Constructor Details
#initialize(node, expression) ⇒ ParameterIsNotAllowedInOptional
Returns a new instance of ParameterIsNotAllowedInOptional.
93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/cucumber/cucumber_expressions/errors.rb', line 93 def initialize(node, expression) super( ( node.start, expression, point_at_located(node), 'An optional may not contain a parameter type', "If you did not mean to use an parameter type you can use '\\{' to escape the '{'" ) ) end |