abhishek893rai / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

HttpError should inherit from a less specialized exception class #305

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently you cannot catch HttpError without specifically importing it and 
adding it to the except list. It would be nice if HttpError inherited from 
something like IOError/EnvironmentError so a generic handler could catch it 
without capturing all sorts of unrelated errors.

Original issue reported on code.google.com by chris@improbable.org on 10 Oct 2013 at 9:46