chaitanyabm / gdata-ruby-util

Automatically exported from code.google.com/p/gdata-ruby-util
Apache License 2.0
0 stars 0 forks source link

Errors are not programatically very usable #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The attached patch makes the errors raised by gdata more useful.

It provides a base gdata error class that can be used to rescue all errors that 
come from gdata.

It captures the Net::HTTPResponse object when creating errors based on HTTP 
responses for 
better usability so I can distinguish between a 401 Unathourized and 403 
Forbidden and provide 
my users with better behavior and messaging.

Original issue reported on code.google.com by eric.ho...@gmail.com on 22 Apr 2009 at 9:39

Attachments:

GoogleCodeExporter commented 8 years ago
Committed this to trunk in r26.

Any other changes you want to see in 1.1.0? :)

Original comment by jfis...@youtube.com on 22 Apr 2009 at 10:10

GoogleCodeExporter commented 8 years ago
Nothing I've come across, thanks for the quick apply!

Original comment by eric.ho...@gmail.com on 22 Apr 2009 at 11:26