Exception: HandcuffsPhaseOutOfOrderError

Inherits:
HandcuffsError show all
Defined in:
lib/handcuffs/errors.rb

Instance Method Summary collapse

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