title: Handling Net::HTTP.get failures
body: <p>The following line:</p>
  
  <pre><code>page_source = Net::HTTP.get(URI.parse("http://not-a-real-url.com"))
  </code></pre>
  
  <p>When passed a url that is properly formatted, but doesn't go anywhere (like the example above), dies out with:</p>
  
  <pre><code>getaddrinfo: nodename nor servname provided, or not known
  </code></pre>
  
  <p>I'm trying to figure out how to "begin / rescue" this condition, but I can't seem to find in the documentation what error, if any, the 'get' method is throwing.</p>