errors

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PanicOnMissingLocale = true

Functions

func ParseUserFacing

func ParseUserFacing(err error) (int, error)

ParseUserFacing returns the exit code and a user facing error message.

func ReportError

func ReportError(err error, cmd *captain.Command, an analytics.Dispatcher)

Types

type ErrorTips

type ErrorTips interface {
	ErrorTips() []string
}

type OutputError

type OutputError struct {
	// contains filtered or unexported fields
}

func (*OutputError) MarshalOutput

func (o *OutputError) MarshalOutput(f output.Format) interface{}

func (*OutputError) MarshalStructured

func (o *OutputError) MarshalStructured(f output.Format) interface{}

Jump to

Keyboard shortcuts

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