示例#1
0
文件: error.go 项目: xh3b4sd/anna
// IsNotFound asserts notFoundError.
func IsNotFound(err error) bool {
	return errgo.Cause(err) == notFoundError || redis.IsNotFound(err)
}
示例#2
0
文件: error.go 项目: xh3b4sd/anna
// IsNotFound combines IsNotFound error matchers of all storage
// implementations. IsNotFound should thus be used for error handling wherever
// spec.Storage is dealt with.
func IsNotFound(err error) bool {
	return redis.IsNotFound(err)
}