Exception: AMQP::ChannelClosedError

Inherits:
Error
  • Object
show all
Defined in:
lib/amqp/exceptions.rb

Overview

Raised on attempt to use a channel that was previously closed (either due to channel-level exception or intentionally via AMQP::Channel#close).

Instance Attribute Summary

Attributes inherited from Error

#cause

Instance Method Summary (collapse)

Constructor Details

- (ChannelClosedError) initialize(instance)

Returns a new instance of ChannelClosedError



74
75
76
# File 'lib/amqp/exceptions.rb', line 74

def initialize(instance)
  super("Channel with id = #{instance.channel} is closed, you can't use it anymore!")
end