lib/macros4cuke/exceptions.rb in macros4cuke-0.2.11 vs lib/macros4cuke/exceptions.rb in macros4cuke-0.2.12

- old
+ new

@@ -32,9 +32,18 @@ super("The sub-step argument '#{anArgName}' does not appear in the phrase.") end end # class + +# Raised when a sub-step has an empty or blank argument name. +class EmptyArgumentError < Macros4CukeError + def initialize(aText) + super("An empty or blank argument occurred in '#{aText}'.") + end +end # class + + # Raised when one invokes a macro-step with an unknown phrase. class UnknownMacroError < Macros4CukeError def initialize(aPhrase) super("Unknown macro-step with phrase: '[#{aPhrase}'.") end \ No newline at end of file