apperror

package
v0.0.0-...-4b0c08a Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unexpected    = 1
	Usage         = 2
	Configuration = 3
	Remote        = 4
	Mutation      = 5
)

Variables

This section is empty.

Functions

func Code

func Code(err error) int

func New

func New(code int, message string) error

func Wrap

func Wrap(code int, op string, err error) error

Types

type Error

type Error struct {
	Code int
	Op   string
	Err  error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

Jump to

Keyboard shortcuts

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