Exception: Chamber::Errors::MissingSetting

Inherits:
KeyError
  • Object
show all
Defined in:
lib/chamber/errors/missing_setting.rb

Instance Method Summary collapse

Constructor Details

#initialize(missing_key, all_keys) ⇒ MissingSetting

Returns a new instance of MissingSetting.



6
7
8
9
10
# File 'lib/chamber/errors/missing_setting.rb', line 6

def initialize(missing_key, all_keys)
  super(<<~HEREDOC.chomp)
    You attempted to access setting '#{all_keys.join(':')}' but '#{missing_key}' did not exist.
  HEREDOC
end