<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Rails Forum - Ruby on Rails Help and Discussion Forum - How to test / prevent errors for TimeOut]]></title>
		<link>http://railsforum.com/viewtopic.php?id=52987</link>
		<description><![CDATA[The most recent posts in How to test / prevent errors for TimeOut.]]></description>
		<lastBuildDate>Mon, 08 Apr 2013 19:03:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to test / prevent errors for TimeOut]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=161669#p161669</link>
			<description><![CDATA[<p>begin<br />&nbsp; xml_data = Net::HTTP.get_response(URI.parse(feed_url)).body<br />rescue Errno::ETIMEDOUT =&gt; exc<br />&nbsp; &nbsp; &nbsp;puts ´ERROR: #{exc.message}´<br />end</p>]]></description>
			<author><![CDATA[dummy@example.com (robzdc)]]></author>
			<pubDate>Mon, 08 Apr 2013 19:03:17 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=161669#p161669</guid>
		</item>
		<item>
			<title><![CDATA[How to test / prevent errors for TimeOut]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=159863#p159863</link>
			<description><![CDATA[<p>hey.<br />i have this line of code in a Def</p><p>xml_data = Net::HTTP.get_response(URI.parse(feed_url)).body</p><p>If this times out it causes a fatal error.</p><br /><p>/home/ssg/.gem/ruby/1.8/gems/rails-2.3.8/lib/commands/runner.rb:48: /usr/lib/ruby/1.8/timeout.rb:64:in `rbuf_fill&#039;: execution expired (Timeout::Error)</p><p>How can i Catch this so if it does time out, its not a fatal error?</p><p>THanks!</p>]]></description>
			<author><![CDATA[dummy@example.com (ssgrfk)]]></author>
			<pubDate>Fri, 15 Feb 2013 09:07:01 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=159863#p159863</guid>
		</item>
	</channel>
</rss>
