errors

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCaller added in v0.5.0

func GetCaller(skip int) (string, string, int)

func HandleError added in v0.5.0

func HandleError(fn func(error))

Types

type AniError

type AniError struct {
	Data interface{}
	Msg  string
	File string //file
	Func string //func
	Line int
}

func NewAniError

func NewAniError(msg string) *AniError

func NewAniErrorD

func NewAniErrorD(data interface{}) *AniError

func NewAniErrorSkip

func NewAniErrorSkip(skip int, msg string) *AniError

func NewAniErrorSkipf

func NewAniErrorSkipf(skip int, format string, a ...interface{}) *AniError

func NewAniErrorf

func NewAniErrorf(format string, a ...interface{}) *AniError

func (*AniError) Error

func (e *AniError) Error() string

func (*AniError) SetData

func (e *AniError) SetData(data interface{}) *AniError

func (*AniError) SetMsg

func (e *AniError) SetMsg(msg string) *AniError

func (*AniError) TryPanic added in v0.5.0

func (e *AniError) TryPanic()

Jump to

Keyboard shortcuts

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