Exception: Macros4Cuke::DuplicateMacroError
- Inherits:
-
Macros4CukeError
- Object
- StandardError
- Macros4CukeError
- Macros4Cuke::DuplicateMacroError
- 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
-
#initialize(aPhrase) ⇒ DuplicateMacroError
constructor
A new instance of DuplicateMacroError.
Constructor Details
#initialize(aPhrase) ⇒ DuplicateMacroError
Returns a new instance of DuplicateMacroError.
13 14 15 |
# File 'lib/macros4cuke/exceptions.rb', line 13 def initialize(aPhrase) super("A macro-step with phrase '#{aPhrase}' already exist.") end |