xerr

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AUTH_ERROR = 20001

auth

View Source
const BAD_REUQEST_ERROR = 500

全局错误码 前3位代表业务,后三位代表具体功能

View Source
const OK = 200

成功返回

View Source
const REUQES_PARAM_ERROR = 400
View Source
const USER_NOT_EXIST = 10001

usercenter

Variables

This section is empty.

Functions

func MapErrMsg

func MapErrMsg(errcode int) string

Types

type CodeError

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

func New

func New(errCode int, errMsg string) *CodeError

func NewErrCode

func NewErrCode(errCode int) *CodeError

func NewErrMsg

func NewErrMsg(errMsg string) *CodeError

func (*CodeError) Error

func (e *CodeError) Error() string

func (*CodeError) GetErrCode

func (e *CodeError) GetErrCode() int

属性

func (*CodeError) GetErrMsg

func (e *CodeError) GetErrMsg() string

Jump to

Keyboard shortcuts

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