Exception: Macros4Cuke::DuplicateMacroError

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

Overview

Raised when one attempts to define a new macro that has the same phrase as an existing macro.

Instance Method Summary collapse

Constructor Details

#initialize(aPhrase) ⇒ DuplicateMacroError

Returns a new instance of DuplicateMacroError.



38
39
40
# File 'lib/macros4cuke/exceptions.rb', line 38

def initialize(aPhrase)
  super("A macro-step with phrase '#{aPhrase}' already exists.")
end