Exception: ConvenientService::Utils::Array::Exceptions::NonIntegerIndex

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/utils/array/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(index:) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/convenient_service/utils/array/exceptions.rb', line 8

def initialize_with_kwargs(index:)
  message = <<~TEXT
    Index `#{index.inspect}` is NOT an integer.
  TEXT

  initialize(message)
end