Exception: Bunny::ConnectionLevelException
- Defined in:
- lib/bunny/exceptions.rb
Overview
Base class for all connection level exceptions
Direct Known Subclasses
ChannelError, CommandInvalid, ConnectionForced, ForcedConnectionCloseError, FrameError, InternalError, ResourceError, UnexpectedFrame
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#connection_close ⇒ Object
readonly
Returns the value of attribute connection_close.
Instance Method Summary collapse
-
#initialize(message, connection, connection_close) ⇒ ConnectionLevelException
constructor
A new instance of ConnectionLevelException.
Constructor Details
#initialize(message, connection, connection_close) ⇒ ConnectionLevelException
Returns a new instance of ConnectionLevelException
43 44 45 46 47 48 |
# File 'lib/bunny/exceptions.rb', line 43 def initialize(, connection, connection_close) super() @connection = connection @connection_close = connection_close end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection
41 42 43 |
# File 'lib/bunny/exceptions.rb', line 41 def connection @connection end |
#connection_close ⇒ Object (readonly)
Returns the value of attribute connection_close
41 42 43 |
# File 'lib/bunny/exceptions.rb', line 41 def connection_close @connection_close end |