Exception: Chamber::Errors::MissingIndex

Inherits:
IndexError
  • Object
show all
Defined in:
lib/chamber/errors/missing_index.rb

Instance Method Summary collapse

Constructor Details

#initialize(missing_index, all_keys) ⇒ MissingIndex

Returns a new instance of MissingIndex.



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

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