errors

package
v1.9.13 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 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 IsCuePathNotFound added in v1.6.0

func IsCuePathNotFound(err error) bool

IsCuePathNotFound checks if the error is cue path not found error

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

Jump to

Keyboard shortcuts

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