Documentation
¶
Index ¶
- func IsErrEqual(err1, err2 error) bool
- func IsItfErr(err error) bool
- type MapItfError
- func NewBaseTypeConvErr(locate string, msg string, err error) *MapItfError
- func NewConvFailed(locate string) *MapItfError
- func NewCurrentCannotUseIndex(locate string) *MapItfError
- func NewFuncUsedErr(locate, msg string) *MapItfError
- func NewGetFuncTypeInconsistent(locate string) *MapItfError
- func NewIllegalMapObject(locate string) *MapItfError
- func NewKeyNotFoundFailed(locate string) *MapItfError
- func NewKeyTypeErr(locate string) *MapItfError
- func NewListIndexIllegal(locate string) *MapItfError
- func NewMapItfErr(locate string, code MapItfErrorCode, msg string, err error) *MapItfError
- func NewMapItfErrX(locate string, code MapItfErrorCode) *MapItfError
- func NewParamTypeErr(locate string) *MapItfError
- func NewTypeMismatchErr(locate string) *MapItfError
- func NewUnSupportInterfaceFunc(locate string) *MapItfError
- func NewValueTypeErr(locate string) *MapItfError
- type MapItfErrorCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrEqual ¶
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
Click to show internal directories.
Click to hide internal directories.