Class: Freno::Throttler::WaitedTooLong
- Defined in:
- lib/freno/throttler/errors.rb
Overview
Raised if the throttler has waited too long for replication delay to catch up.
Instance Method Summary collapse
-
#initialize(waited_seconds: DEFAULT_WAIT_SECONDS, max_wait_seconds: DEFAULT_MAX_WAIT_SECONDS) ⇒ WaitedTooLong
constructor
A new instance of WaitedTooLong.
Constructor Details
#initialize(waited_seconds: DEFAULT_WAIT_SECONDS, max_wait_seconds: DEFAULT_MAX_WAIT_SECONDS) ⇒ WaitedTooLong
Returns a new instance of WaitedTooLong.
13 14 15 |
# File 'lib/freno/throttler/errors.rb', line 13 def initialize(waited_seconds: DEFAULT_WAIT_SECONDS, max_wait_seconds: DEFAULT_MAX_WAIT_SECONDS) super("Waited #{waited_seconds} seconds. Max allowed was #{max_wait_seconds} seconds") end |