errors

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: MulanPSL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDoudianOpError

func NewDoudianOpError(code ErroCode) error

func NewDoudianOpErrorWithMessage

func NewDoudianOpErrorWithMessage(code ErroCode, message string) error

Types

type DoudianOpError

type DoudianOpError struct {
	Code    ErroCode
	Message string
}

func (*DoudianOpError) Error

func (err *DoudianOpError) Error() string

type ErroCode

type ErroCode int
const (
	ConfigIsNull          ErroCode = 10001
	ParamError            ErroCode = 10002
	HttpError             ErroCode = 10003
	BuildAccessTokenError ErroCode = 10004
	ConfigAppKeyIsNull    ErroCode = 10005
	ConfigAppSecretIsNull ErroCode = 10006
	SpiParamIsNull        ErroCode = 10007
)

Jump to

Keyboard shortcuts

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