itferr

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrEqual

func IsErrEqual(err1, err2 error) bool

func IsItfErr

func IsItfErr(err error) bool

Types

type MapItfError

type MapItfError struct {
	ErrCode  MapItfErrorCode
	Location string
	Err      error
	ErrMsg   string
}

func NewBaseTypeConvErr

func NewBaseTypeConvErr(locate string, msg string, err error) *MapItfError

func NewConvFailed

func NewConvFailed(locate string) *MapItfError

func NewCurrentCannotUseIndex

func NewCurrentCannotUseIndex(locate string) *MapItfError

func NewFuncUsedErr

func NewFuncUsedErr(locate, msg string) *MapItfError

func NewGetFuncTypeInconsistent

func NewGetFuncTypeInconsistent(locate string) *MapItfError

func NewIllegalMapObject

func NewIllegalMapObject(locate string) *MapItfError

func NewKeyNotFoundFailed

func NewKeyNotFoundFailed(locate string) *MapItfError

func NewKeyTypeErr

func NewKeyTypeErr(locate string) *MapItfError

func NewListIndexIllegal

func NewListIndexIllegal(locate string) *MapItfError

func NewMapItfErr

func NewMapItfErr(locate string, code MapItfErrorCode, msg string, err error) *MapItfError

NewMapItfErr method,code必填,msg,err选填

func NewMapItfErrX

func NewMapItfErrX(locate string, code MapItfErrorCode) *MapItfError

NewMapItfErrX 精简版

func NewParamTypeErr

func NewParamTypeErr(locate string) *MapItfError

func NewTypeMismatchErr

func NewTypeMismatchErr(locate string) *MapItfError

func NewUnSupportInterfaceFunc

func NewUnSupportInterfaceFunc(locate string) *MapItfError

func NewValueTypeErr

func NewValueTypeErr(locate string) *MapItfError

func (MapItfError) Error

func (mie MapItfError) Error() string

func (MapItfError) String

func (mie MapItfError) String() string

type MapItfErrorCode

type MapItfErrorCode int
const (
	UnknownErr       MapItfErrorCode = -1
	InitParseFailed  MapItfErrorCode = 1001
	InitParamTypeErr MapItfErrorCode = 2001
	ExceptObject     MapItfErrorCode = 2002

	KeyTypeErr              MapItfErrorCode = 3001
	ValueTypeErr            MapItfErrorCode = 3002
	ValueConvertFailed      MapItfErrorCode = 3003
	BaseTypeConvertFailed   MapItfErrorCode = 3004
	KeyNotFound             MapItfErrorCode = 3005
	GetFuncTypeInconsistent MapItfErrorCode = 3006
	IllegalMapObject        MapItfErrorCode = 3007

	ListIndexIllegal MapItfErrorCode = 4001

	UnSupportInterfaceFunc MapItfErrorCode = 5001
	CurrentCannotUseIndex  MapItfErrorCode = 5002
	TypeMismatchErr        MapItfErrorCode = 5003
	FuncUsedErr            MapItfErrorCode = 5004
	UnrecoverableErr       MapItfErrorCode = 5005
)

func GetErrCode

func GetErrCode(err error) MapItfErrorCode

func (MapItfErrorCode) String

func (err MapItfErrorCode) String() string

Jump to

Keyboard shortcuts

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