Documentation
¶
Index ¶
- Constants
- func Detail(err error) string
- func Details(err error) (message, hint string)
- func ExitCode(err error) int
- func Format(err error, verbose bool) string
- func IsReported(err error) bool
- func New(kind Kind, message, hint string, err error) error
- func Reported(err error) error
- func Wrap(kind Kind, message string, err error) error
- type Error
- type Kind
Constants ¶
View Source
const ( ExitUnexpected = 1 ExitUsage = 2 ExitDependency = 3 ExitInput = 4 ExitOutputConflict = 5 ExitConversion = 6 ExitInterrupted = 130 )
Variables ¶
This section is empty.
Functions ¶
func Detail ¶ added in v0.5.0
Detail returns the underlying diagnostic that --verbose reveals, or an empty string when the cause says nothing the message has not already said.
func IsReported ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.