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.



36
37
38
39
40
41
# File 'lib/bunny/exceptions.rb', line 36

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.



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

def channel
  @channel
end

#channel_closeObject (readonly)

Returns the value of attribute channel_close.



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

def channel_close
  @channel_close
end