Documentation
¶
Index ¶
- func IsErrEqual(err1, err2 error) bool
- func IsItfErr(err error) bool
- type MapItfErr
- type MapItfError
- func NewBaseTypeConvErr(locate string, msg string, err error) *MapItfError
- func NewConvFailed(locate string) *MapItfError
- func NewConvFailedX(locate string, msg string, err error) *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 NewSetValueErr(locate string, msg string, err error) *MapItfError
- func NewTypeMismatchErr(locate string) *MapItfError
- func NewUnSupportInterfaceFunc(locate string) *MapItfError
- func NewUnSupportSetValErr(locate string, msg string, err error) *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 NewConvFailedX ¶ added in v1.2.1
func NewConvFailedX(locate string, msg string, err error) *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 NewSetValueErr ¶ added in v1.2.1
func NewSetValueErr(locate string, msg string, err error) *MapItfError
func NewTypeMismatchErr ¶
func NewTypeMismatchErr(locate string) *MapItfError
func NewUnSupportInterfaceFunc ¶
func NewUnSupportInterfaceFunc(locate string) *MapItfError
func NewUnSupportSetValErr ¶ added in v1.2.1
func NewUnSupportSetValErr(locate string, msg string, err error) *MapItfError
func NewValueTypeErr ¶
func NewValueTypeErr(locate string) *MapItfError
func (*MapItfError) Code ¶ added in v1.2.1
func (mie *MapItfError) Code() MapItfErrorCode
func (*MapItfError) Error ¶
func (mie *MapItfError) Error() string
func (*MapItfError) Is ¶ added in v1.2.1
func (mie *MapItfError) Is(err error) bool
func (*MapItfError) IsErrEqual ¶ added in v1.2.1
func (mie *MapItfError) IsErrEqual(err2 error) bool
func (*MapItfError) String ¶
func (mie *MapItfError) String() string
func (*MapItfError) Wrap ¶ added in v1.2.1
func (mie *MapItfError) Wrap(err error) MapItfErr
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 EmptyMapObject MapItfErrorCode = 3008 ListIndexIllegal MapItfErrorCode = 4001 UnSupportInterfaceFunc MapItfErrorCode = 5001 CurrentCannotUseIndex MapItfErrorCode = 5002 TypeMismatchErr MapItfErrorCode = 5003 FuncUsedErr MapItfErrorCode = 5004 UnrecoverablePanicErr MapItfErrorCode = 5005 SetValueErr MapItfErrorCode = 6001 UnSupportSetValTypeErr MapItfErrorCode = 6002 IterChainIsEmpty MapItfErrorCode = 6003 IterChainPreElementIsNil MapItfErrorCode = 6004 )
func GetErrCode ¶
func GetErrCode(err error) MapItfErrorCode
func (MapItfErrorCode) String ¶
func (i MapItfErrorCode) String() string
Click to show internal directories.
Click to hide internal directories.