<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Throw exception when required file does not exist?]]></title><description><![CDATA[<p dir="auto">I wanted to do this:</p>
<pre><code>
begin
  require 'file'
rescue 
  # 
end

</code></pre>
<p dir="auto">But it does work? Why not?</p>
<p dir="auto">I know I can do it other ways, but I'm just curious if there's a reason for the behavior.</p>
]]></description><link>https://community.sketchucation.com/topic/114414/throw-exception-when-required-file-does-not-exist</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 07:55:04 GMT</lastBuildDate><atom:link href="https://community.sketchucation.com/topic/114414.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Sep 2009 18:27:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Throw exception when required file does not exist? on Wed, 02 Sep 2009 16:43:02 GMT]]></title><description><![CDATA[<p dir="auto">Ah! Thank you Adam.</p>
<p dir="auto">But I think I may just be being too lazy to check if the files exists...</p>
]]></description><link>https://community.sketchucation.com/post/1115116</link><guid isPermaLink="true">https://community.sketchucation.com/post/1115116</guid><dc:creator><![CDATA[Jim]]></dc:creator><pubDate>Wed, 02 Sep 2009 16:43:02 GMT</pubDate></item><item><title><![CDATA[Reply to Throw exception when required file does not exist? on Tue, 01 Sep 2009 18:51:49 GMT]]></title><description><![CDATA[<p dir="auto">rescue with no argument will default to <code> StandardError</code>.<br />
What you want is:</p>
<p dir="auto"><code> begin     require 'foods' rescue LoadError    puts "not there"  end</code></p>
]]></description><link>https://community.sketchucation.com/post/1114907</link><guid isPermaLink="true">https://community.sketchucation.com/post/1114907</guid><dc:creator><![CDATA[AdamB]]></dc:creator><pubDate>Tue, 01 Sep 2009 18:51:49 GMT</pubDate></item></channel></rss>