Exception: LocalBus::Subscriber::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/local_bus/subscriber.rb

Overview

Custom error class for Subscriber errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, cause:) ⇒ Error

Constructor



13
14
15
16
# File 'lib/local_bus/subscriber.rb', line 13

def initialize(message, cause:)
  super(message)
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Underlying cause of the error



20
21
22
# File 'lib/local_bus/subscriber.rb', line 20

def cause
  @cause
end