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)


22
23
24
25
26
27
28
29
30
# File 'lib/convenient_service/support/finite_loop.rb', line 22

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