errs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ViewError = errors.New("")
	TokenErr  = errors.New("登录令牌已失效,请重新登录")
	BizErr    = errors.New("")
	DBErr     = errors.New("")
)

Functions

func WithBizErr

func WithBizErr(msg error) error

func WithBizErrf

func WithBizErrf(layout string, msg ...interface{}) error

func WithDBErr

func WithDBErr(msg error) error

func WithDBErrf

func WithDBErrf(layout string, msg ...interface{}) error

func WithError

func WithError(err, err1 error) error

func WithMessage

func WithMessage(err error, message string) error

func WithTokenErr

func WithTokenErr(msg error) error

func WithTokenErrf

func WithTokenErrf(layout string, msg ...interface{}) error

func WithViewErr

func WithViewErr(msg error) error

func WithViewErrf

func WithViewErrf(layout string, msg ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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