exitcode

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK                  = 0
	ErrGeneral          = 1
	ErrInvalidUsage     = 2
	ErrNotAuthenticated = 3
	ErrConfig           = 4
	ErrNetwork          = 5
	ErrGit              = 6
	ErrAPI              = 7
	ErrCancelled        = 8
	ErrNotImplemented   = 9
)

Variables

This section is empty.

Functions

func Code

func Code(err error) int

func Is

func Is(err error) bool

Types

type CodedError

type CodedError struct {
	Err  error
	Code int
}

func New

func New(code int, err error) *CodedError

func (*CodedError) Error

func (e *CodedError) Error() string

func (*CodedError) Unwrap

func (e *CodedError) Unwrap() error

Jump to

Keyboard shortcuts

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