apperr

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeSuccess  = 0
	CodeFindings = 1
	CodeUsage    = 2
	CodeUpstream = 3
)

Variables

View Source
var (
	ErrUsage     = errors.New("usage error")
	ErrUpstream  = errors.New("upstream error")
	ErrFindings  = errors.New("findings")
	ErrNotFound  = errors.New("not found")
	ErrNotConfig = errors.New("not configured")
)

Functions

func ExitCode

func ExitCode(err error) int

func Findings

func Findings(msg string) error

func Upstream

func Upstream(msg string, err error) error

func Usage

func Usage(msg string) error

Types

type CodedError

type CodedError struct {
	Code    int
	Message string
	Err     error
}

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