errors

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// LabelConflict defines the conflict label error string
	LabelConflict = "LabelConflict"
)

Variables

This section is empty.

Functions

func AggregateErrors added in v1.3.0

func AggregateErrors(errs []error) error

AggregateErrors aggregate errors into ErrorList and filter nil, if no error found, return nil

func IsCRDNotExists added in v1.2.4

func IsCRDNotExists(err error) bool

IsCRDNotExists check if error is crd not exists

func IsLabelConflict added in v1.2.0

func IsLabelConflict(err error) bool

IsLabelConflict checks if the error is Label Conflict error

Types

type ErrorList

type ErrorList []error

ErrorList wraps a list of errors, it also fit for an Error interface

func (ErrorList) Error

func (e ErrorList) Error() string

Error implement error interface

func (ErrorList) HasError

func (e ErrorList) HasError() bool

HasError check if any error exists in list

type ManagedResourceHasNoDataError added in v1.2.0

type ManagedResourceHasNoDataError struct{}

ManagedResourceHasNoDataError identifies error caused by no data in maanged resource

func (ManagedResourceHasNoDataError) Error added in v1.2.0

type ResourceTrackerNotExistError

type ResourceTrackerNotExistError struct {
	Name string
}

ResourceTrackerNotExistError identifies error caused by resourcetracker not exist

func (ResourceTrackerNotExistError) Error

Error implement error interface

Jump to

Keyboard shortcuts

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