Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FromString is the Code identifying Errors created by string types FromString = iota + 1 // FromError is the Code identifying Errors created by error types FromError // FromStringer is the Code identifying Errors created by fmt.Stringer types FromStringer )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIError ¶
type APIError struct {
Errors []APIErrorReason `json:"errors"`
}
APIError is the set of errors returned by the Linode API on an invalid request.
type APIErrorReason ¶
APIErrorReason represents an individual invalid request message returned by the Linode API.
func (APIErrorReason) Error ¶
func (r APIErrorReason) Error() string
type Error ¶
Error represents an Error in the context of an API method call.
Click to show internal directories.
Click to hide internal directories.