errors

package
v0.0.0-...-23ccc0c Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCacheNotFoundErr

func IsCacheNotFoundErr(err error) bool

IsCacheNotFoundErr checks whether or not the provided error is of type CacheNotFoundErr

func IsInformerNotFoundErr

func IsInformerNotFoundErr(err error) bool

IsInformerNotFoundErr checks whether or not the provided error is of type InformerNotFoundError

Types

type CacheNotFoundErr

type CacheNotFoundErr struct {
	Err error
}

CacheNotFoundErr is an error to represent that an object was not found by the cache. This could mean that an informer has not been created that would find the requested resource

func NewCacheNotFoundErr

func NewCacheNotFoundErr(err error) *CacheNotFoundErr

NewCacheNotFoundErr creates a new CacheNotFoundErr for the provided error

func (*CacheNotFoundErr) Error

func (cnfe *CacheNotFoundErr) Error() string

Error returns the string representation of the error

type InformerNotFoundErr

type InformerNotFoundErr struct {
	Err error
}

InformerNotFoundErr is an error to represent that an informer was not found for the given request

func NewInformerNotFoundErr

func NewInformerNotFoundErr(err error) *InformerNotFoundErr

NewInformerNotFoundErr creates a new InformerNotFoundErr for the provided error

func (*InformerNotFoundErr) Error

func (infe *InformerNotFoundErr) Error() string

Error returns the string representation of the error

Jump to

Keyboard shortcuts

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