Skip to content
gojuukaze edited this page Aug 27, 2022 · 2 revisions

error type

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

compare err

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