flyerr

package
v0.2.106 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAbort = errors.New("abort")

ErrAbort is an error for when the CLI aborts

Functions

func GetErrorDescription added in v0.0.234

func GetErrorDescription(err error) string

func GetErrorDocUrl added in v0.1.79

func GetErrorDocUrl(err error) string

func GetErrorSuggestion added in v0.0.234

func GetErrorSuggestion(err error) string

func IsCancelledError added in v0.0.234

func IsCancelledError(err error) bool

func PrintCLIOutput added in v0.0.234

func PrintCLIOutput(err error)

Types

type ErrorDescription added in v0.0.234

type ErrorDescription interface {
	error
	Description() string
}

ErrorDescription is an error with a detailed description that will be printed before the CLI exits

type ErrorSuggestion added in v0.0.234

type ErrorSuggestion interface {
	error
	Suggestion() string
}

ErrorSuggestion is an error with suggested next steps that will be printed before the CLI exits

type FlyDocUrl added in v0.1.79

type FlyDocUrl interface {
	DocURL() string
}

type GenericErr added in v0.1.82

type GenericErr struct {
	Err      string
	Descript string
	Suggest  string
	DocUrl   string
}

func (GenericErr) Description added in v0.1.82

func (e GenericErr) Description() string

func (GenericErr) Error added in v0.1.82

func (e GenericErr) Error() string

func (GenericErr) FlyDocURL added in v0.1.82

func (e GenericErr) FlyDocURL() string

func (GenericErr) Suggestion added in v0.1.82

func (e GenericErr) Suggestion() string

Jump to

Keyboard shortcuts

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