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 = "    Unknown phase \#{phase.to_s}\n    Handcuffs is configured to allow \#{phases.to_sentence}\n  MESSAGE\n  super msg\nend\n"