class Bunny::TCPConnectionFailed
Raised when TCP connection to RabbitMQ fails because of an unresolved hostname, connectivity problem, etc
Attributes
Public Class Methods
Source
# File lib/bunny/exceptions.rb, line 70 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
Calls superclass method