ecode

package
v2.8.13 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const EcodeNum int32 = 9999

EcodeNum 低于10000均为系统错误码,业务错误码请使用10000以上

Variables

View Source
var (

	// OK ...
	OK = add(int(codes.OK), "OK")

	ErrKindRequestErr = "request err"
)

Functions

func ExtractCodes

func ExtractCodes(e error) *spbStatus

ExtractCodes cause from error to ecode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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