Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { // The status code, which should be an enum value of // [google.rpc.Code][google.rpc.Code]. Code shared.ErrorCode `json:"code"` // A developer-facing error message, which should be in English. Any user-facing // error message should be localized and sent in the // [google.rpc.Status.details][google.rpc.Status.details] field, or localized by // the client. Message string `json:"message"` ExtraFields map[string]interface{} `json:"-,extras"` JSON errorJSON `json:"-"` StatusCode int Request *http.Request Response *http.Response }
Error represents an error that originates from the API, i.e. when a request is made and the API returns a response with a HTTP status code. Other errors are not wrapped by this SDK.
func (*Error) DumpRequest ¶
func (*Error) DumpResponse ¶
func (*Error) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.