errors

package
v4.2.26+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCodePullthroughManifest = errcode.Register(errGroup, errcode.ErrorDescriptor{
		Value:   "OPENSHIFT_PULLTHROUGH_MANIFEST",
		Message: "unable to pull manifest from %s: %v",

		HTTPStatusCode: http.StatusNotFound,
	})
)

Functions

func Handle

func Handle(ctx context.Context, message string, err error)

Types

type Error

type Error struct {
	Code    string
	Message string
	Err     error
}

Error provides a wrapper around error.

func NewError

func NewError(code, msg string, err error) *Error

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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