errors

package
v0.47.2-0...-23ee662 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

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 NotFound

type NotFound struct {
	// contains filtered or unexported fields
}

NotFound is returned when the target resource cannot be located.

func NewNotFound

func NewNotFound(err string) *NotFound

NewNotFound returns a new instance of NotFound with an optional custom error message.

func NewNotFoundf

func NewNotFoundf(format string, args ...interface{}) *NotFound

NewNotFoundf returns a new instance of NotFound with an optional formatted custom error message.

func (*NotFound) Error

func (e *NotFound) Error() string

type Timeout

type Timeout struct {
	// contains filtered or unexported fields
}

Timeout is returned when the target resource cannot be located.

func NewTimeout

func NewTimeout(err string) *Timeout

NewTimeout returns a new instance of Timeout with an optional custom error message.

func NewTimeoutf

func NewTimeoutf(format string, args ...interface{}) *Timeout

NewTimeoutf returns a new instance of Timeout with an optional formatted custom error message.

func (*Timeout) Error

func (e *Timeout) Error() string

type UnexpectedStatusCode

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

func NewUnexpectedStatusCode(statusCode int, err string) *UnexpectedStatusCode

NewUnexpectedStatusCode returns a new instance of UnexpectedStatusCode with an optional custom message.

func NewUnexpectedStatusCodef

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

func (e *UnexpectedStatusCode) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL