lib/bunny/exceptions.rb in bunny-1.0.4 vs lib/bunny/exceptions.rb in bunny-1.0.5
- old
+ new
@@ -40,9 +40,21 @@
@connection = connection
@connection_close = connection_close
end
end
+ # Can indicate either a channel or connection-level issue
+ class NotAllowedError < Exception
+ attr_reader :connection, :connection_close
+
+ def initialize(message, connection, connection_close = nil)
+ super(message)
+
+ @connection = connection
+ @connection_close = connection_close
+ end
+ end
+
# Raised when TCP connection to RabbitMQ fails because of an unresolved
# hostname, connectivity problem, etc
class TCPConnectionFailed < Exception
attr_reader :hostname, :port