errors

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// InternalServerError 服务器异常
	InternalServerError = errors.New("internal server error")

	// NoRecords 没有记录
	NoRecords = errors.New("no records found")

	// NotChange 未改变
	NotChange = errors.New("not change")

	// ParamsInvalid 参数无效
	ParamsInvalid = errors.New("params invalid")
)
View Source
var (
	New = errors.New

	NewWithCaller = errors.NewWithCaller

	Wrap = errors.Wrap

	Is = errors.Is

	IsIn = errors.IsIn

	As = errors.As

	Unwrap = errors.Unwrap
)

Functions

func IsEmptyRecord

func IsEmptyRecord(err error) bool

IsEmptyRecord 掺入的错误信息是有找到,但是值为空

func IsNoRecord

func IsNoRecord(err error) bool

IsNoRecord 传入的错误信息是一个没有找到记录的错误

Types

This section is empty.

Jump to

Keyboard shortcuts

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