Documentation ¶
Overview ¶
Package errors converts HTTP errors to messages
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotFound ¶ added in v0.3.0
type NotFound struct {
// contains filtered or unexported fields
}
NotFound is returned when the target resource cannot be located.
func NewNotFound ¶ added in v0.3.0
NewNotFound returns a new instance of NotFound with an optional custom error message.
func NewNotFoundf ¶ added in v0.3.0
NewNotFoundf returns a new instance of NotFound with an optional formatted custom error message.
type UnexpectedStatusCode ¶ added in v0.3.0
type UnexpectedStatusCode struct {
// contains filtered or unexported fields
}
UnexpectedStatusCode is returned when an unexpected status code is returned from New Relic's APIs.
func NewUnexpectedStatusCode ¶ added in v0.3.0
func NewUnexpectedStatusCode(statusCode int, err string) *UnexpectedStatusCode
NewUnexpectedStatusCode returns a new instance of UnexpectedStatusCode with an optional custom message.
func NewUnexpectedStatusCodef ¶ added in v0.3.0
func NewUnexpectedStatusCodef(statusCode int, format string, args ...interface{}) *UnexpectedStatusCode
NewUnexpectedStatusCodef returns a new instance of UnexpectedStatusCode with an optional formatted custom message.
func (*UnexpectedStatusCode) Error ¶ added in v0.3.0
func (e *UnexpectedStatusCode) Error() string
Click to show internal directories.
Click to hide internal directories.