Exception: Chamber::Errors::MissingIndex
- Inherits:
-
IndexError
- Object
- IndexError
- Chamber::Errors::MissingIndex
- Defined in:
- lib/chamber/errors/missing_index.rb
Instance Method Summary collapse
-
#initialize(missing_index, all_keys) ⇒ MissingIndex
constructor
A new instance of MissingIndex.
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 |