Exception: JetstreamBridge::ConsumerError
- Defined in:
- lib/jetstream_bridge/errors.rb
Overview
Consumer errors with delivery context
Direct Known Subclasses
Instance Attribute Summary collapse
-
#deliveries ⇒ Object
readonly
Returns the value of attribute deliveries.
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, event_id: nil, deliveries: nil, context: {}) ⇒ ConsumerError
constructor
A new instance of ConsumerError.
Constructor Details
#initialize(message = nil, event_id: nil, deliveries: nil, context: {}) ⇒ ConsumerError
Returns a new instance of ConsumerError.
58 59 60 61 62 |
# File 'lib/jetstream_bridge/errors.rb', line 58 def initialize( = nil, event_id: nil, deliveries: nil, context: {}) @event_id = event_id @deliveries = deliveries super(, context: context.merge(event_id: event_id, deliveries: deliveries).compact) end |
Instance Attribute Details
#deliveries ⇒ Object (readonly)
Returns the value of attribute deliveries.
56 57 58 |
# File 'lib/jetstream_bridge/errors.rb', line 56 def deliveries @deliveries end |
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
56 57 58 |
# File 'lib/jetstream_bridge/errors.rb', line 56 def event_id @event_id end |