Skip to content

error zh cn

gojuukaze edited this page Aug 27, 2022 · 2 revisions

内置的错误类型

const (
	ErrTypeEmptyQuery      = 1
	ErrTypeUnsupportedType = 2
	ErrTypeOutOfRange      = 3
	ErrTypeNilResult       = 4
	ErrTypeTimeOut         = 5
)

比较错误

import 	"github.com/gojuukaze/YTask/v3/yerrors"
yerrors.IsEqual(err, yerrors.ErrTypeNilResult)