errors

package
v1.0.73 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success        = 0
	InvalidRequest = 1
	UnknownError   = 3
	ServicePanic   = 4
)

Variables

This section is empty.

Functions

func Is

func Is(err error, errno int) bool

func Msg

func Msg(errno int) string

func Register

func Register(name string, errno map[int]string)

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func New

func New(errno int, error error) Error

func (Error) Errno

func (e Error) Errno() int

func (Error) Error

func (e Error) Error() string

func (Error) Metric

func (e Error) Metric()

func (Error) Record

func (e Error) Record(ctx context.Context) Error

func (Error) String

func (e Error) String() 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