xerror

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cause = errors.Cause

Functions

func WrapAuthenticateFailErrorWithMsg

func WrapAuthenticateFailErrorWithMsg(msg string, args ...interface{}) error

func WrapAuthorizateFailErrorWithMsg

func WrapAuthorizateFailErrorWithMsg(msg string, args ...interface{}) error

func WrapDaoError

func WrapDaoError(err error) error

WrapDaoError just storage layout invoke

func WrapDependentUnReadyErrorWithMsg

func WrapDependentUnReadyErrorWithMsg(msg string, args ...interface{}) error

WrapDependentUnReadyErrorWithMsg Just Service layout invoke

func WrapDirtyDataError

func WrapDirtyDataError(err error) error

WrapDirtyDataError Just Service layout invoke

func WrapDirtyDataErrorWithMsg

func WrapDirtyDataErrorWithMsg(msg string, args ...interface{}) error

WrapDirtyDataErrorWithMsg Just Service layout invoke

func WrapModelError

func WrapModelError(err error) error

WrapModelError Just Service layout invoke

func WrapModelErrorWithMsg

func WrapModelErrorWithMsg(msg string, args ...interface{}) error

WrapModelErrorWithMsg Just Service layout invoke

func WrapParamError

func WrapParamError(err error) error

WrapParamError Just endpoints layout invoke

func WrapParamErrorWithMsg

func WrapParamErrorWithMsg(tip string, args ...interface{}) error

WrapParamErrorWithMsg Just endpoints invoke

func WrapRecordExisted

func WrapRecordExisted(topic ...string) error

WrapRecordExisted Record Existed

func WrapRecordNotExist

func WrapRecordNotExist(topic ...string) error

Types

type ResolveResult

type ResolveResult struct {
	ErrNo int
	Type  string
	Msg   string
	// contains filtered or unexported fields
}

func Resolve

func Resolve(err error) *ResolveResult

func (*ResolveResult) FullMsg

func (rr *ResolveResult) FullMsg() string

func (*ResolveResult) String

func (rr *ResolveResult) String() string

Jump to

Keyboard shortcuts

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