title: How to check for specific rescue clause for error handling in Rails 3.x?
body: <p>I have the following code:</p>
  
  <pre><code>begin
    site = RedirectFollower.new(url).resolve
  rescue =&gt; e
    puts e.to_s
    return false
  end
  </code></pre>
  
  <p>Which throws errors like:</p>
  
  <p><code>the scheme http does not accept registry part: www.officedepot.com;</code></p>
  
  <p><code>the scheme http does not accept registry part: ww2.google.com/something;</code></p>
  
  <p><code>Operation timed out - connect(2)</code></p>
  
  <p><strong>How can I add in another rescue for all errors that are like <code>the scheme http does not accept registry part</code>?</strong></p>
  
  <p>Since I want to do something other than just printing the error and returning false in that case.</p>