errors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatusReasonDeprecated means the mode has been deprecated
	StatusReasonDeprecated metav1.StatusReason = "Deprecated"
)
View Source
const (
	StatusReasonNotSupported metav1.StatusReason = "NotSupported"
)

Variables

This section is empty.

Functions

func IsDeprecated

func IsDeprecated(err error) (deprecated bool)

IsDeprecated returns true if the specified error was created by NewDeprecated.

func IsNotSupported added in v0.9.0

func IsNotSupported(err error) (notSupported bool)

IsNotSupported returns true if the specified error was created by NewNotSupported.

func ReasonForError

func ReasonForError(err error) metav1.StatusReason

Types

type FluidStatusError

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

FluidStatusError is an error intended for consumption by the controller it's for Fluid internal error

func NewDeprecated

func NewDeprecated(qualifiedResource schema.GroupResource, key types.NamespacedName) *FluidStatusError

func NewNotSupported added in v0.9.0

func NewNotSupported(qualifiedResource schema.GroupResource, targetType string) *FluidStatusError

func (FluidStatusError) Details

func (e FluidStatusError) Details() *metav1.StatusDetails

func (FluidStatusError) Error

func (e FluidStatusError) Error() string

func (FluidStatusError) Reason

type StatusError

type StatusError interface {
	Reason() metav1.StatusReason
	Details() *metav1.StatusDetails
}

StatusError is an interface for Fluid internal error

Jump to

Keyboard shortcuts

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