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

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(limit:) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

  • limit (Integer)

Since:

  • 1.0.0



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