udwErr

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrintStack = debug.PrintStack

Functions

func ErrorMsgToErr

func ErrorMsgToErr(errMsg string) (err error)

func ErrorSprint

func ErrorSprint(objList ...interface{}) error

func ErrorToMsg

func ErrorToMsg(err error) (errMsg string)

func LogError

func LogError(err error)

func LogErrorWithStack

func LogErrorWithStack(err error)

func LogUserErrorWithStack

func LogUserErrorWithStack(err error)

func New

func New(s string) error

func PanicIfError

func PanicIfError(err error)

func PanicIfErrorMsg

func PanicIfErrorMsg(errMsg string)

func PanicToCallback

func PanicToCallback(f func(), panicFn func(errMsg string))

func PanicToError

func PanicToError(f func()) (err error)

func PanicToErrorAndLog

func PanicToErrorAndLog(f func()) (err error)

func PanicToErrorMsg

func PanicToErrorMsg(f func()) (errMsg string)

func PanicToErrorMsgAndStack

func PanicToErrorMsgAndStack(f func()) (errMsg string, stack string)

func PanicToErrorMsgWithStack

func PanicToErrorMsgWithStack(f func()) (errMsg string)

func PanicToErrorMsgWithStackAndLog

func PanicToErrorMsgWithStackAndLog(f func())

func PanicToErrorWithStackAndLog

func PanicToErrorWithStackAndLog(f func()) (err error)

Types

type ErrMsgListWithLocker

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

func (*ErrMsgListWithLocker) Add

func (l *ErrMsgListWithLocker) Add(errMsg string)

func (*ErrMsgListWithLocker) GetAll

func (l *ErrMsgListWithLocker) GetAll() string

func (*ErrMsgListWithLocker) Has

func (l *ErrMsgListWithLocker) Has() bool

type ErrmsgList

type ErrmsgList struct {
	List []string
}

func (*ErrmsgList) AddErrMsg

func (l *ErrmsgList) AddErrMsg(errMsg string)

func (*ErrmsgList) AddErrMsgList

func (l *ErrmsgList) AddErrMsgList(errMsgList *ErrmsgList)

func (*ErrmsgList) AddError

func (l *ErrmsgList) AddError(err error)

func (*ErrmsgList) GetErrMsg

func (l *ErrmsgList) GetErrMsg() string

func (*ErrmsgList) HasErrMsg

func (l *ErrmsgList) HasErrMsg() bool

type PanicErr

type PanicErr struct {
	PanicObj interface{}
}

func (PanicErr) Error

func (e PanicErr) Error() string

type RpcErr

type RpcErr struct {
	RemoteLogicErr string

	NetworkErr string
}

func (*RpcErr) Error

func (e *RpcErr) Error() string

Jump to

Keyboard shortcuts

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