customerrors

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomError

type CustomError struct {
	ErrorType    ErrorType
	ErrorMessage string
}

func New

func New(et ErrorType, e error) *CustomError

func To

func To(e error) *CustomError

func (*CustomError) Error

func (ce *CustomError) Error() string

type ErrorType

type ErrorType string
const (
	ErrorTypeUnknown         ErrorType = "Unknown"
	ErrorTypeAuthentication  ErrorType = "Authentication"
	ErrorTypeAuthorization   ErrorType = "Authorization"
	ErrorTypeKubeConfig      ErrorType = "KubeConfig"
	ErrorTypeTokenCache      ErrorType = "TokenCache"
	ErrorTypeCACertificate   ErrorType = "CACertificate"
	ErrorTypeOverwriteConfig ErrorType = "OverwriteConfig"
	ErrorTypeMenu            ErrorType = "Menu"
)

Jump to

Keyboard shortcuts

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