Exception: AMQP::Client::Error::ConnectionClosed

Inherits:
AMQP::Client::Error show all
Defined in:
lib/amqp/client/errors.rb

Overview

Raised if connection is unexpectedly closed

Instance Method Summary collapse

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