Class: Freno::Throttler::WaitedTooLong

Inherits:
Error
  • Object
show all
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

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