Exception: Omnes::UnknownSubscriptionError

Inherits:
Error
  • Object
show all
Defined in:
lib/omnes/errors.rb

Overview

Raised when a subscription is not known by a bus

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subscription:, bus:) ⇒ UnknownSubscriptionError

Returns a new instance of UnknownSubscriptionError.



86
87
88
89
90
# File 'lib/omnes/errors.rb', line 86

def initialize(subscription:, bus:)
  @subscription = subscription
  @bus = bus
  super(default_message)
end

Instance Attribute Details

#busObject (readonly)

Returns the value of attribute bus.



84
85
86
# File 'lib/omnes/errors.rb', line 84

def bus
  @bus
end

#subscriptionObject (readonly)

Returns the value of attribute subscription.



84
85
86
# File 'lib/omnes/errors.rb', line 84

def subscription
  @subscription
end