errors

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ERR_SERVER_ERROR    = gerror.NewCode(gcode.New(-1, "Server errors", nil))
	ERR_UNAUTHORIZED    = gerror.NewCode(gcode.New(999, "Unauthorized", nil))
	ERR_INVALID_ACCOUNT = gerror.NewCode(gcode.New(10001, "Invalid Phone", nil))
	ERR_INVALID_API_KEY = gerror.NewCode(gcode.New(10002, "无效的应用密钥", nil))
)

Functions

func As

func As(err error, target any) bool

func Is

func Is(err, target error) bool

func New

func New(text string) error

func Newf

func Newf(format string, args ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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