lib/amqp/client.rb in celldee-bunny-0.0.9 vs lib/amqp/client.rb in celldee-bunny-0.1.0

- old
+ new

@@ -127,11 +127,11 @@ def send_command(cmd, *args) begin socket.__send__(cmd, *args) rescue Errno::EPIPE, IOError => e - raise ServerDown, e.message + raise ServerDownError, e.message end end def socket return @socket if @socket and not @socket.closed? @@ -145,10 +145,10 @@ if Socket.constants.include? 'TCP_NODELAY' @socket.setsockopt Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1 end @status = CONNECTED rescue SocketError, SystemCallError, IOError, Timeout::Error => e - raise ServerDown, e.message + raise ServerDownError, e.message end @socket end \ No newline at end of file