Exception: Bunny::ChannelLevelException
- Defined in:
- lib/bunny/exceptions.rb
Overview
Base class for all channel level exceptions
Direct Known Subclasses
AccessRefused, ForcedChannelCloseError, NotFound, PreconditionFailed, ResourceLocked
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#channel_close ⇒ Object
readonly
Returns the value of attribute channel_close.
Instance Method Summary collapse
-
#initialize(message, ch, channel_close) ⇒ ChannelLevelException
constructor
A new instance of ChannelLevelException.
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(, ch, channel_close) super() @channel = ch @channel_close = channel_close end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel
29 30 31 |
# File 'lib/bunny/exceptions.rb', line 29 def channel @channel end |
#channel_close ⇒ Object (readonly)
Returns the value of attribute channel_close
29 30 31 |
# File 'lib/bunny/exceptions.rb', line 29 def channel_close @channel_close end |