errors

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const VMNotExist vmNotExist = "Machine does not exist. Use 'crc start' to create it"

Variables

This section is empty.

Functions

func RetryAfter

func RetryAfter(limit time.Duration, callback func() error, d time.Duration) error

RetryAfter retries for a certain duration, after a delay

func RetryAfterWithContext added in v1.24.0

func RetryAfterWithContext(ctx context.Context, limit time.Duration, callback func() error, d time.Duration) error

RetryAfterWithContext retries for a certain duration, after a delay

Types

type MultiError

type MultiError struct {
	Errors []error
}

func (*MultiError) Collect

func (m *MultiError) Collect(err error)

func (MultiError) Error added in v1.17.0

func (m MultiError) Error() string

type PreflightError added in v1.23.0

type PreflightError struct {
	Err error
}

func (*PreflightError) Error added in v1.23.0

func (p *PreflightError) Error() string

func (*PreflightError) Unwrap added in v1.23.0

func (p *PreflightError) Unwrap() error

type RetriableError

type RetriableError struct {
	Err error
}

RetriableError is an error that can be tried again

func (*RetriableError) Error

func (r *RetriableError) Error() string

type SerializableError added in v1.23.0

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

func ToSerializableError added in v1.23.0

func ToSerializableError(err error) *SerializableError

func (*SerializableError) MarshalJSON added in v1.23.0

func (e *SerializableError) MarshalJSON() ([]byte, error)

func (*SerializableError) Unwrap added in v1.23.0

func (e *SerializableError) Unwrap() error

Jump to

Keyboard shortcuts

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