Sha256: 49bfc60b72bc423679ca0ab589761c1726279001fc8c3f4a1ff44b0f414acdd8
Contents?: true
Size: 667 Bytes
Versions: 4
Compression:
Stored size: 667 Bytes
Contents
require "freno/client" module Freno class Throttler # Any throttler-related error. class Error < Freno::Error; end # Raised if the throttler has waited too long for replication delay # to catch up. class WaitedTooLong < Error 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 end # Raised if the circuit breaker is open and didn't allow latest request class CircuitOpen < Error; end # Raised if the freno client errored. class ClientError < Error; end end end
Version data entries
4 entries across 4 versions & 1 rubygems