Exception: HandcuffsPhaseOutOfOrderError
- Inherits:
-
HandcuffsError
- Object
- StandardError
- HandcuffsError
- HandcuffsPhaseOutOfOrderError
- Defined in:
- lib/handcuffs/errors.rb
Instance Method Summary collapse
-
#initialize(not_run_phase, attempted_phase) ⇒ HandcuffsPhaseOutOfOrderError
constructor
A new instance of HandcuffsPhaseOutOfOrderError.
Constructor Details
#initialize(not_run_phase, attempted_phase) ⇒ HandcuffsPhaseOutOfOrderError
Returns a new instance of HandcuffsPhaseOutOfOrderError.
45 46 47 48 49 50 |
# File 'lib/handcuffs/errors.rb', line 45 def initialize(not_run_phase, attempted_phase) msg = <<-MESSAGE You tried to run #{attempted_phase.to_s}, but #{not_run_phase.to_s} has not been run MESSAGE super msg end |