flyerr

package
v0.0.272-pre-5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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