Exception: AMQP::Client::Error::Closed
- Inherits:
-
AMQP::Client::Error
- Object
- StandardError
- AMQP::Client::Error
- AMQP::Client::Error::Closed
- Defined in:
- lib/amqp/client/errors.rb
Overview
Depending on close level a ConnectionClosed or ChannelClosed error is returned
Class Method Summary collapse
Class Method Details
.new(id, level, code, reason, classid = 0, methodid = 0) ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/amqp/client/errors.rb', line 37 def self.new(id, level, code, reason, classid = 0, methodid = 0) case level when :connection ConnectionClosed.new(code, reason, classid, methodid) when :channel ChannelClosed.new(id, code, reason, classid, methodid) else raise ArgumentError, "invalid level '#{level}'" end end |