CHJani / google-api-java-client

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

GoogleJsonResponseException #337

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://javadoc.google-api-java-client.googlecode.com/hg/1.5.1-beta/com/google/ap
i/client/googleapis/json/GoogleJsonError.html

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

Currently when exceptions happen in the generated service-specific library we 
throw an HttpResponseException.  The user must then know they need to use 
GoogleJsonError to get the detailed error response, but this is hard to 
discover.  I propose that instead we throw GoogleJsonResponseException which 
will automatically parse the HTTP response using GoogleJsonError and in fact 
append that content into the HTTP Response Exception message.

Original issue reported on code.google.com by yan...@google.com on 1 Nov 2011 at 4:16

GoogleCodeExporter commented 9 years ago
http://codereview.appspot.com/5311078/

Original comment by yan...@google.com on 1 Nov 2011 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 2 Nov 2011 at 2:44