errors

package
v1.12.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitError

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

func NewInit

func NewInit(kind InitErrorKind, entity string, err error) *InitError

NewInit returns an InitError wrapping an existing context error.

func (*InitError) Error

func (e *InitError) Error() string

func (*InitError) Unwrap

func (e *InitError) Unwrap() error

type InitErrorKind

type InitErrorKind string
const (
	InitFailure            InitErrorKind = "INIT_FAILURE"
	InitComponentFailure   InitErrorKind = "INIT_COMPONENT_FAILURE"
	CreateComponentFailure InitErrorKind = "CREATE_COMPONENT_FAILURE"
)

type RetriableError

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

func NewRetriable

func NewRetriable(err error) *RetriableError

NewRetriable returns a RetriableError wrapping an existing context error.

func (*RetriableError) Error

func (e *RetriableError) Error() string

func (*RetriableError) Unwrap

func (e *RetriableError) Unwrap() error

Jump to

Keyboard shortcuts

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