Exception: Cucumber::CucumberExpressions::InvalidParameterTypeNameInNode

Inherits:
CucumberExpressionError show all
Defined in:
lib/cucumber/cucumber_expressions/errors.rb

Instance Method Summary collapse

Methods inherited from CucumberExpressionError

#build_message, #point_at, #point_at_located

Constructor Details

#initialize(expression, token) ⇒ InvalidParameterTypeNameInNode

Returns a new instance of InvalidParameterTypeNameInNode.



174
175
176
177
178
179
180
181
182
183
184
# File 'lib/cucumber/cucumber_expressions/errors.rb', line 174

def initialize(expression, token)
  super(
    build_message(
      token.start,
      expression,
      point_at_located(token),
      "Parameter names may not contain '{', '}', '(', ')', '\\' or '/'",
      'Did you mean to use a regular expression?'
    )
  )
end