ecode

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// base error
	Success         = New(0, "success")
	RequestErr      = New(10400, "request error")
	InvalidSignErr  = New(10401, "invalid sign")
	InvalidAppidErr = New(10402, "invalid appid")
	InvalidTokenErr = New(10403, "invalid token")
	NothingFound    = New(10404, "nothing found")
	ServerErr       = New(10500, "server error")
)

Functions

func AnalyseError

func AnalyseError(err error) *eError

analyse error info

func New

func New(code int, msg string) *eError

New new error code and msg

Types

This section is empty.

Jump to

Keyboard shortcuts

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