aquarat / google-api-go-client

Automatically exported from code.google.com/p/google-api-go-client
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Expose a custom error type and provide context about non HTTP 200 cases #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
API calls should return a custom error type that provides some context about 
the HTTP status code and multiple error messages returned.

type ApiError struct {
  Messages []string
  StatusCode int
  // ...
}

Original issue reported on code.google.com by j...@google.com on 19 Sep 2014 at 9:58

GoogleCodeExporter commented 9 years ago

Original comment by gmle...@google.com on 26 Sep 2014 at 10:31

GoogleCodeExporter commented 9 years ago
The error reporting in google-api-go-client have recently been enhanced:
https://code.google.com/p/google-api-go-client/source/browse/googleapi/googleapi
.go#36
Closing this request.

Original comment by gmle...@google.com on 29 Sep 2014 at 8:54