Exception: Omnes::DuplicateSubscriptionIdError

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

Overview

Raised when given subscription id is already in use

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, bus:) ⇒ DuplicateSubscriptionIdError

Returns a new instance of DuplicateSubscriptionIdError.



106
107
108
109
110
# File 'lib/omnes/errors.rb', line 106

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

Instance Attribute Details

#busObject (readonly)

Returns the value of attribute bus.



104
105
106
# File 'lib/omnes/errors.rb', line 104

def bus
  @bus
end

#idObject (readonly)

Returns the value of attribute id.



104
105
106
# File 'lib/omnes/errors.rb', line 104

def id
  @id
end