Exception: HandcuffsUnknownPhaseError

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

Instance Method Summary collapse

Constructor Details

#initialize(phase, phases) ⇒ HandcuffsUnknownPhaseError

Returns a new instance of HandcuffsUnknownPhaseError.



25
26
27
28
29
30
31
# File 'lib/handcuffs/errors.rb', line 25

def initialize(phase, phases)
  msg = <<-MESSAGE
    Unknown phase #{phase.to_s}
    Handcuffs is configured to allow #{phases.to_sentence}
  MESSAGE
  super msg
end