Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Detail string `json:"detail,required,nullable"`
// All errors related to parsing the request parameters.
Errors []interface{} `json:"errors,required"`
ResourceID string `json:"resource_id,required"`
Status ErrorStatus `json:"status,required"`
Title string `json:"title,required"`
Type ErrorType `json:"type,required"`
RetryAfter int64 `json:"retry_after,nullable"`
JSON errorJSON
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.