flyerr

package
v0.0.248 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 5 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 CaptureException

func CaptureException(err error, opts ...CaptureOption)

func CaptureMessage

func CaptureMessage(msg string, opts ...CaptureOption)

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 CaptureOption

type CaptureOption func(scope *sentry.Scope)

func WithContext

func WithContext(key string, val interface{}) CaptureOption

func WithContexts

func WithContexts(contexts map[string]interface{}) CaptureOption

func WithTag

func WithTag(key, value string) CaptureOption

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