errors

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 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_PERMISSION_DENIED = gerror.NewCode(gcode.New(999, "无权限访问", nil))
	ERR_INVALID_ACCOUNT   = gerror.NewCode(gcode.New(10001, "Invalid Mobile", 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