Exception: Bunny::ChannelAlreadyClosed

Inherits:
Exception
  • Object
show all
Defined in:
lib/bunny/exceptions.rb

Overview

Raised when a closed channel is used

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, ch) ⇒ ChannelAlreadyClosed

Returns a new instance of ChannelAlreadyClosed.



203
204
205
206
207
# File 'lib/bunny/exceptions.rb', line 203

def initialize(message, ch)
  super(message)

  @channel = ch
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



201
202
203
# File 'lib/bunny/exceptions.rb', line 201

def channel
  @channel
end