errors

package
v2.36.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DaemonNotRunning daemonNotRunning = "crc does not seem to be setup correctly, have you run 'crc setup'?"
View Source
const VMNotExist vmNotExist = "Machine does not exist. Use 'crc start' to create it"

Variables

This section is empty.

Functions

func Retry

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

Retry retries for a certain duration, after a delay

Types

type MaskedSecretError

type MaskedSecretError struct {
	Err    error
	Secret string
}

func (*MaskedSecretError) Error

func (err *MaskedSecretError) Error() string

type MultiError

type MultiError struct {
	Errors []error
}

func (*MultiError) Collect

func (m *MultiError) Collect(err error)

func (MultiError) Error

func (m MultiError) Error() string

type PreflightError

type PreflightError struct {
	Err error
}

func (*PreflightError) Error

func (p *PreflightError) Error() string

func (*PreflightError) Unwrap

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

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

func ToSerializableError

func ToSerializableError(err error) *SerializableError

func (*SerializableError) MarshalJSON

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

func (*SerializableError) Unwrap

func (e *SerializableError) Unwrap() error

Jump to

Keyboard shortcuts

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