Exception: Macros4Cuke::AmbiguousArgumentValue

Inherits:
Macros4CukeError show all
Defined in:
lib/macros4cuke/exceptions.rb

Overview

Raised when one passes one value for an argument via the macro-step's phrase and a value for that same argument via the the data table. and that argument name does not appear in any sub-step.

Instance Method Summary collapse

Constructor Details

#initialize(anArgName, valuePhrase, valueTable) ⇒ AmbiguousArgumentValue

Returns a new instance of AmbiguousArgumentValue.



67
68
69
70
71
# File 'lib/macros4cuke/exceptions.rb', line 67

def initialize(anArgName, valuePhrase, valueTable)
  msg1 = "The macro argument '#{anArgName}' has value "
  msg2 = "'#{valuePhrase}' and '#{valueTable}'."
  super(msg1 + msg2)
end