Exception: HandcuffsPhaseUndeclaredError
- Inherits:
-
HandcuffsError
- Object
- StandardError
- HandcuffsError
- HandcuffsPhaseUndeclaredError
- Defined in:
- lib/handcuffs/errors.rb
Instance Method Summary collapse
-
#initialize(found_phases, allowed_phases) ⇒ HandcuffsPhaseUndeclaredError
constructor
A new instance of HandcuffsPhaseUndeclaredError.
Constructor Details
#initialize(found_phases, allowed_phases) ⇒ HandcuffsPhaseUndeclaredError
Returns a new instance of HandcuffsPhaseUndeclaredError.
35 36 37 38 39 40 41 |
# File 'lib/handcuffs/errors.rb', line 35 def initialize(found_phases, allowed_phases) msg = <<-MESSAGE found declarations for #{found_phases.to_sentence} but only #{allowed_phases.to_sentence} are allowed MESSAGE super msg end |