Exception: JetstreamBridge::Error
- Inherits:
-
StandardError
- Object
- StandardError
- JetstreamBridge::Error
- Defined in:
- lib/jetstream_bridge/errors.rb
Overview
Base error for all JetStream Bridge errors with context support
Direct Known Subclasses
ConfigurationError, ConnectionError, ConsumerError, DlqError, PublishError, RetryExhausted, TopologyError
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(message = nil, context: {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, context: {}) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/jetstream_bridge/errors.rb', line 8 def initialize( = nil, context: {}) super() @context = context.freeze end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
6 7 8 |
# File 'lib/jetstream_bridge/errors.rb', line 6 def context @context end |