Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIErrorWithResponse ¶
func NewRequestError ¶
Types ¶
type APIError ¶
type APIError struct {
Operation string `json:"operation"`
Method string `json:"method"`
URL string `json:"url"`
StatusCode int `json:"statusCode"`
ErrorMessage string `json:"message,omitempty"`
ReqId string `json:"reqId,omitempty"`
}
APIError represents an error response from the API
type RequestError ¶
type RequestError struct {
Operation string `json:"operation"`
// contains filtered or unexported fields
}
RequestError represents an error that occurred during an API request
func (*RequestError) Error ¶
func (e *RequestError) Error() string
Click to show internal directories.
Click to hide internal directories.