Exception: GorgonBunny::ConnectionLevelException
- Defined in:
- lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb
Overview
Base class for all connection level exceptions
Direct Known Subclasses
ChannelError, CommandInvalid, ConnectionForced, ForcedConnectionCloseError, FrameError, InternalError, MessageError, ProtocolError, 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.
37 38 39 40 41 42 |
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 37 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.
35 36 37 |
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 35 def connection @connection end |
#connection_close ⇒ Object (readonly)
Returns the value of attribute connection_close.
35 36 37 |
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 35 def connection_close @connection_close end |