Documentation ¶
Overview ¶
Package errors provides error types for specific error scenarios.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvalidInput ¶ added in v0.61.0
type InvalidInput struct {
// contains filtered or unexported fields
}
InvalidInput is returned when the user input is invalid.
func NewInvalidInput ¶ added in v0.61.0
func NewInvalidInput(err string) *InvalidInput
NewInvalidInput returns a new instance of InvalidInput with an optional custom error message.
func NewInvalidInputf ¶ added in v0.61.0
func NewInvalidInputf(format string, args ...interface{}) *InvalidInput
NewInvalidInputf returns a new instance of InvalidInput with an optional formatted custom error message.
func (*InvalidInput) Error ¶ added in v0.61.0
func (e *InvalidInput) Error() string
type MaxRetriesReached ¶ added in v0.56.0
type MaxRetriesReached struct {
// contains filtered or unexported fields
}
MaxRetriesReached is returned when the target resource cannot be located.
func NewMaxRetriesReached ¶ added in v0.56.0
func NewMaxRetriesReached(err string) *MaxRetriesReached
NewMaxRetriesReached returns a new instance of MaxRetriesReached with an optional custom error message.
func NewMaxRetriesReachedf ¶ added in v0.56.0
func NewMaxRetriesReachedf(format string, args ...interface{}) *MaxRetriesReached
NewMaxRetriesReachedf returns a new instance of MaxRetriesReached with an optional formatted custom error message.
func (*MaxRetriesReached) Error ¶ added in v0.56.0
func (e *MaxRetriesReached) Error() string
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 PaymentRequiredError ¶ added in v0.75.0
type PaymentRequiredError struct {
// contains filtered or unexported fields
}
PaymentRequiredError is returned when a 402 HTTP status code is returned from New Relic's APIs.
func NewPaymentRequiredError ¶ added in v0.75.0
func NewPaymentRequiredError() *PaymentRequiredError
NewPaymentRequiredError returns a new instance of PaymentRequiredError with an optional custom message.
func (*PaymentRequiredError) Error ¶ added in v0.75.0
func (e *PaymentRequiredError) Error() string
type UnauthorizedError ¶ added in v0.55.2
type UnauthorizedError struct {
// contains filtered or unexported fields
}
UnauthorizedError is returned when a 401 HTTP status code is returned from New Relic's APIs.
func NewUnauthorizedError ¶ added in v0.55.2
func NewUnauthorizedError() *UnauthorizedError
NewUnauthorizedError returns a new instance of UnauthorizedError with an optional custom message.
func (*UnauthorizedError) Error ¶ added in v0.55.2
func (e *UnauthorizedError) Error() string
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