Exception: RequiresPhaseArgumentError
- Inherits:
-
HandcuffsError
- Object
- StandardError
- HandcuffsError
- RequiresPhaseArgumentError
- Defined in:
- lib/handcuffs/errors.rb
Instance Method Summary collapse
-
#initialize(task) ⇒ RequiresPhaseArgumentError
constructor
A new instance of RequiresPhaseArgumentError.
Constructor Details
#initialize(task) ⇒ RequiresPhaseArgumentError
Returns a new instance of RequiresPhaseArgumentError.
5 6 7 8 9 10 11 |
# File 'lib/handcuffs/errors.rb', line 5 def initialize(task) msg = <<-MESSAGE rake #{task} requires a phase argument. For example: #{task}[pre_restart] MESSAGE super(msg) end |