Exception: AMQ::Client::ConnectionClosedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/amq/client/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(frame) ⇒ ConnectionClosedError

Returns a new instance of ConnectionClosedError.



61
62
63
64
65
66
67
# File 'lib/amq/client/exceptions.rb', line 61

def initialize(frame)
  if frame.respond_to?(:method_class)
    super("Trying to send frame through a closed connection. Frame is #{frame.inspect}, method class is #{frame.method_class}")
  else
    super("Trying to send frame through a closed connection. Frame is #{frame.inspect}")
  end
end