errno

package
v0.0.0-...-d705234 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK           = 200
	DefErr       = 400
	TokenErr     = 401
	Exception    = 402
	WrongReq     = 422
	SysErr       = 500
	HeaderErr    = 510
	TimesLimited = 512
)

Variables

This section is empty.

Functions

func Add

func Add(msg string, code int) error

func AddSysErr

func AddSysErr(msg string, code int) error

Types

type Errno

type Errno struct {
	Code     int    `json:"code"`
	Msg      string `json:"msg"`
	IsNetErr uint8  `json:"is_net"`
}

func (*Errno) Error

func (err *Errno) Error() string

Jump to

Keyboard shortcuts

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