err

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const BAD_REQUEST_ERROR = 100001

系统模块

View Source
const OK = 200
View Source
const REQUEST_PARAM_ERROR = 100002
View Source
const USER_NOT_FOUND = 200001

用户模块

Variables

This section is empty.

Functions

func ErrMaps

func ErrMaps(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 (c *CodeError) Error() string

func (*CodeError) GetErrCode

func (c *CodeError) GetErrCode() int

func (*CodeError) GetErrMsg

func (c *CodeError) GetErrMsg() string

Jump to

Keyboard shortcuts

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