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 = "    Max iteration count is exceeded. Current limit is \#{limit}.\n\n    Consider using `max_iteration_count` or `raise_on_exceedance` options if that is not the expected behavior.\n  TEXT\n\n  initialize(message)\nend\n"