Exception: HandcuffsUnknownPhaseError
- Inherits:
-
HandcuffsError
- Object
- StandardError
- HandcuffsError
- HandcuffsUnknownPhaseError
- Defined in:
- lib/handcuffs/errors.rb
Instance Method Summary collapse
-
#initialize(phase, phases) ⇒ HandcuffsUnknownPhaseError
constructor
A new instance of HandcuffsUnknownPhaseError.
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 |