Exception: Wurk::Client::Buffered::Overflow

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/wurk/client/buffered.rb

Overview

Raised by ‘enbuffer` when the cap would be exceeded under `overflow_mode == :raise`. Inherits from RuntimeError so callers can rescue narrowly. The payload that triggered the overflow rides along so the caller can persist/log/forward it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ Overflow

Returns a new instance of Overflow.



31
32
33
34
# File 'lib/wurk/client/buffered.rb', line 31

def initialize(payload)
  @payload = payload
  super("reliable_push buffer is full (cap=#{Buffered.buffer_cap})")
end

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload.



29
30
31
# File 'lib/wurk/client/buffered.rb', line 29

def payload
  @payload
end