errors

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrFailure = Error("failure")
	ErrUser    = Error("user error")

	ExitOK      = 0
	ExitGeneral = 1
	ExitUser    = 2
	ExitFailure = 3
	ExitCancel  = 4
)

Variables

This section is empty.

Functions

func ExitCode

func ExitCode(err error) int

func Internal added in v0.2.0

func Internal(err error) error

Types

type Error

type Error string

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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