flyerr

package
v0.0.499 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 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 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

Jump to

Keyboard shortcuts

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