Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEntityValidationFailed ¶
IsEntityValidationFailed checks if the entity validation failed.
func IsNotFound ¶
IsNotFound A simple helper to get a status code for an error and see if it's a not found status code
func StatusCode ¶
StatusCode returns the HTTP status code of an error, if there is one.
Types ¶
type Error ¶
type Error struct {
Operation string `json:"operation,omitempty"`
Code int `json:"code,omitempty"`
Message string `json:"message,omitempty"`
// contains filtered or unexported fields
}
Error contains the structured error data from a server to the API client.
Click to show internal directories.
Click to hide internal directories.