Documentation ¶
Index ¶
- Variables
- func CaptureException(err error, opts ...CaptureOption)
- func CaptureMessage(msg string, opts ...CaptureOption)
- func GetErrorDescription(err error) string
- func GetErrorSuggestion(err error) string
- func IsCancelledError(err error) bool
- func PrintCLIOutput(err error)
- type CaptureOption
- type ErrorDescription
- type ErrorSuggestion
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 GetErrorSuggestion ¶ added in v0.0.234
func IsCancelledError ¶ added in v0.0.234
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
ErrorDescription is an error with a detailed description that will be printed before the CLI exits
type ErrorSuggestion ¶ added in v0.0.234
ErrorSuggestion is an error with suggested next steps that will be printed before the CLI exits
Click to show internal directories.
Click to hide internal directories.