Exception: HandcuffsPhaseUndeclaredError

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

Instance Method Summary collapse

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