liuqiaosz / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

Return "error" object received from server in the Google API V3 .NET Client Exception object #480

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Target platform (e.g. Windows, Mono, Silverlight, WP7, All)?
       Google API V3 .NET Client

Feature Request:
Return the "error" object sent from the server in the Exception class object to 
allow programs using Google API V3 .NET Client to recognize and act on the 
actual error reason returned from the server rather then just generic errors 
like "Bad Request". Also makes it easier for the software developer to 
recognize the root cause of a "bug".

{
 "error": {
  "errors": [
   {
    "domain": "youtube.video",
    "reason": "invalidCategoryId",
    "message": "Bad Request",
    "locationType": "other",
    "location": "body.snippet.categoryId"
   }
  ],
  "code": 400,
  "message": "Bad Request"
 }
}

Original issue reported on code.google.com by MikeMe...@gmail.com on 15 Jul 2014 at 6:14

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 31 Jul 2014 at 2:49