Exception: Bunny::ChannelLevelException

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

Overview

Base class for all channel level exceptions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, ch, channel_close) ⇒ ChannelLevelException

Returns a new instance of ChannelLevelException.



31
32
33
34
35
36
# File 'lib/bunny/exceptions.rb', line 31

def initialize(message, ch, channel_close)
  super(message)

  @channel       = ch
  @channel_close = channel_close
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



29
30
31
# File 'lib/bunny/exceptions.rb', line 29

def channel
  @channel
end

#channel_closeObject (readonly)

Returns the value of attribute channel_close.



29
30
31
# File 'lib/bunny/exceptions.rb', line 29

def channel_close
  @channel_close
end