Exception: Wurk::Client::Buffered::Overflow
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Wurk::Client::Buffered::Overflow
- 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
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
Instance Method Summary collapse
-
#initialize(payload) ⇒ Overflow
constructor
A new instance of Overflow.
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
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
29 30 31 |
# File 'lib/wurk/client/buffered.rb', line 29 def payload @payload end |