Exception: GorgonBunny::ChannelLevelException

Inherits:
Exception
  • Object
show all
Defined in:
lib/gorgon_bunny/lib/gorgon_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.



25
26
27
28
29
30
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 25

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.



23
24
25
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 23

def channel
  @channel
end

#channel_closeObject (readonly)

Returns the value of attribute channel_close.



23
24
25
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 23

def channel_close
  @channel_close
end