qerr

package
v0.0.0-...-4155a33 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 6 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OhThereIsError

func OhThereIsError()

func SimpleRecover

func SimpleRecover(skipStack int) error

func SimpleRecoverThen

func SimpleRecoverThen(skipStack int, callback func(err error))

func StackCuttingMap

func StackCuttingMap(skip int, stackine int) map[string]interface{}

func StackErr

func StackErr(skip int, stackline int, err error, msg string, args ...interface{}) error

func StackString

func StackString(skip int, stackline int, msg string, args ...interface{}) string

func StackStringErr

func StackStringErr(skip int, stackline int, msg string, args ...interface{}) error

Types

type CError

type CError struct {
	Code int
	Msg  string
	Type string
	Time time.Time
}

func NewCError

func NewCError(code int, t string, msg string) *CError

func (*CError) Error

func (m *CError) Error() string

type StackCut

type StackCut struct {
	Func  string
	Line  int
	File  string
	Stack []byte
}

func StackCutting

func StackCutting(skip int, stackline int) *StackCut

Jump to

Keyboard shortcuts

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