Exception: JetstreamBridge::PublishError
- Defined in:
- lib/jetstream_bridge/errors.rb
Overview
Publisher errors with enriched context
Direct Known Subclasses
Instance Attribute Summary collapse
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, event_id: nil, subject: nil, context: {}) ⇒ PublishError
constructor
A new instance of PublishError.
Constructor Details
#initialize(message = nil, event_id: nil, subject: nil, context: {}) ⇒ PublishError
28 29 30 31 32 |
# File 'lib/jetstream_bridge/errors.rb', line 28 def initialize( = nil, event_id: nil, subject: nil, context: {}) @event_id = event_id @subject = subject super(, context: context.merge(event_id: event_id, subject: subject).compact) end |
Instance Attribute Details
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
26 27 28 |
# File 'lib/jetstream_bridge/errors.rb', line 26 def event_id @event_id end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
26 27 28 |
# File 'lib/jetstream_bridge/errors.rb', line 26 def subject @subject end |