hd

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCode

func ErrCode(code int) error

ErrCode 构造错误码

func ErrSetLoad

func ErrSetLoad(f func(f string) map[int]string)

ErrSetLoad 设置错误码文字加载函数

Types

type Error

type Error int

Error Error

const (
	//没有错误
	E_OK         Error = 0
	E_ERR_ALERT  Error = 1
	E_ERR_POP_UP Error = 2
	E_OK_ALERT   Error = 3
	E_OK_POP_UP  Error = 4

	//通用类错误
	E_INVALID_PARAM         Error = 100
	E_DB_ERROR              Error = 101
	E_MCT_SEND_ERROR        Error = 102
	E_BACK_CONNECT_ERROR    Error = 103
	E_BACK_SEND_ERROR       Error = 104
	E_BACK_RECV_ERROR       Error = 105
	E_BACK_RECV_STATE_ERROR Error = 106
	E_BACK_RECV_DATA_ERROR  Error = 107
)

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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