errors

package
v0.0.0-...-dbb49e6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetError

func GetError(err error) error

Retrieves a custom error struct based on the original error APIStatus struct Returns the original error struct in case it can't identify the kind of APIStatus error

func IsForbiddenError

func IsForbiddenError(err error) bool

IsForbiddenError returns true if given error can be converted to API status and of type forbidden access else false

Types

type KNError

type KNError struct {
	Status api_errors.APIStatus
	// contains filtered or unexported fields
}

func NewInvalidCRD

func NewInvalidCRD(apiGroup string) *KNError

func NewKNError

func NewKNError(msg string) *KNError

func (*KNError) Error

func (kne *KNError) Error() string

Jump to

Keyboard shortcuts

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