Exception: GorgonBunny::ChannelLevelException
- Defined in:
- lib/gorgon_bunny/lib/gorgon_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.
25 26 27 28 29 30 |
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 25 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.
23 24 25 |
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 23 def channel @channel end |
#channel_close ⇒ Object (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 |