eerror

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknownErrCode = "9999"
	SuccessCode    = "20000"
)

Variables

View Source
var (
	DefaultSuccessCodes = []string{SuccessCode}
)

Functions

func ExtractBizCode

func ExtractBizCode(successCodes []string) func(resp interface{}, err error) (string, bool)

Types

type AtomicError

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

func (*AtomicError) Load

func (ae *AtomicError) Load() error

func (*AtomicError) Set

func (ae *AtomicError) Set(err error)

type BatchError

type BatchError []error

func (BatchError) Error

func (be BatchError) Error() string

Jump to

Keyboard shortcuts

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