title: Printing Exception type in Python using Errno
body: <p>I currently have code of the format</p>
  
  <pre><code>try:
      ....
  except(HTTPError, URLError, socket.error) as e:
      print "error({0}):{1}".format(e.errno, e.strerror)
  continue
  </code></pre>
  
  <p>But want to know which of the three triggered the exception.  Is there a way to do this in python?</p>