lib/cucumber/wire_support/connection.rb in cucumber-0.4.5.rc2 vs lib/cucumber/wire_support/connection.rb in cucumber-0.5.0
- old
+ new
@@ -20,9 +20,13 @@
response.handle_with(response_handler)
rescue Timeout::Error
raise "Timed out calling server with message #{message}"
end
end
+
+ def exception(params)
+ WireException.new(params, @host, @port)
+ end
private
def send_data_to_socket(data, timeout)
Timeout.timeout(timeout) { socket.puts(data) }
\ No newline at end of file