Exception: ConvenientService::Support::FiniteLoop::Exceptions::MaxIterationCountExceeded

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/support/finite_loop.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(limit:) ⇒ void

This method returns an undefined value.

Parameters:

  • limit (Integer)


17
18
19
20
21
22
23
24
25
# File 'lib/convenient_service/support/finite_loop.rb', line 17

def initialize_with_kwargs(limit:)
  message = <<~TEXT
    Max iteration count is exceeded. Current limit is #{limit}.

    Consider using `max_iteration_count` or `raise_on_exceedance` options if that is not the expected behavior.
  TEXT

  initialize(message)
end