Exception: AMQP::Client::Error::ConnectionClosed
- Inherits:
-
AMQP::Client::Error
- Object
- StandardError
- AMQP::Client::Error
- AMQP::Client::Error::ConnectionClosed
- Defined in:
- lib/amqp/client/errors.rb
Overview
Raised if connection is unexpectedly closed
Instance Method Summary collapse
-
#initialize(code, reason, classid = 0, methodid = 0) ⇒ ConnectionClosed
constructor
A new instance of ConnectionClosed.
Constructor Details
#initialize(code, reason, classid = 0, methodid = 0) ⇒ ConnectionClosed
Returns a new instance of ConnectionClosed.
57 58 59 |
# File 'lib/amqp/client/errors.rb', line 57 def initialize(code, reason, classid = 0, methodid = 0) super "Connection closed (#{code}) #{reason} (#{classid}/#{methodid})" end |