Exception: Cucumber::CucumberExpressions::AmbiguousParameterTypeError

Inherits:
CucumberExpressionError show all
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

Methods inherited from CucumberExpressionError

#build_message, #point_at, #point_at_located

Constructor Details

#initialize(parameter_type_regexp, expression_regexp, parameter_types, generated_expressions) ⇒ AmbiguousParameterTypeError

Returns a new instance of AmbiguousParameterTypeError.



187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# 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 187

def initialize(parameter_type_regexp, expression_regexp, parameter_types, generated_expressions)
  super("Your Regular Expression /\#{expression_regexp.source}/\nmatches multiple parameter types with regexp /\#{parameter_type_regexp}/:\n   \#{parameter_type_names(parameter_types)}\n\nI couldn't decide which one to use. You have two options:\n\n1) Use a Cucumber Expression instead of a Regular Expression. Try one of these:\n   \#{expressions(generated_expressions)}\n\n2) Make one of the parameter types preferential and continue to use a Regular Expression.\n\n  EOM\nend\n")