Class: WaterDrop::Errors::ProduceManyError

Inherits:
ProduceError
  • Object
show all
Defined in:
lib/waterdrop/errors.rb

Overview

Raised when during messages producing something bad happened inline

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dispatched) ⇒ ProduceManyError

Returns a new instance of ProduceManyError.

Parameters:

  • dispatched (Array<Rdkafka::Producer::DeliveryHandle>)

    handlers of the messages that we’ve dispatched



41
42
43
44
# File 'lib/waterdrop/errors.rb', line 41

def initialize(dispatched)
  super()
  @dispatched = dispatched
end

Instance Attribute Details

#dispatchedObject (readonly)

Returns the value of attribute dispatched.



37
38
39
# File 'lib/waterdrop/errors.rb', line 37

def dispatched
  @dispatched
end