class Bunny::ConnectionError
Raised when TCP connection to RabbitMQ fails because of an unresolved hostname, connectivity problem, etc
Attributes
hostname[R]
port[R]
Public Class Methods
new(e, hostname=nil, port=nil)
click to toggle source
Calls superclass method
# File lib/bunny/exceptions.rb, line 68 def initialize(e, hostname=nil, port=nil) m = case e when String then e when ::Exception then e.message end if hostname && port super("Could not establish TCP connection to #{hostname}:#{port}: #{m}") else super(m) end end