Exception: JetstreamBridge::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jetstream_bridge/errors.rb

Overview

Base error for all JetStream Bridge errors with context support

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = nil, context: {})
  super(message)
  @context = context.freeze
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



6
7
8
# File 'lib/jetstream_bridge/errors.rb', line 6

def context
  @context
end