-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
27 lines (20 loc) · 857 Bytes
/
errors.go
File metadata and controls
27 lines (20 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package elasticutil
import "github.com/arquivei/foundationkit/errors"
// ErrNotAllShardsReplied is returned when no all elasticsearch's shards
// successfully reply.
var ErrNotAllShardsReplied = errors.New("not all shards replied")
func filterMustBeAStructError(kind string) error {
return errors.New("[" + kind + "] filter must be a struct")
}
func structNotSupportedError(name string) error {
return errors.New("[" + name + "] struct is not supported")
}
func typeNotSupportedError(name, t string) error {
return errors.New("[" + name + "] is of unknown type: " + t)
}
func fullTextSearchTypeNotSupported(name string) error {
return errors.New("[" + name + "] full text search value is not supported")
}
func multiMatchSearchTypeNotSupported(name string) error {
return errors.New("[" + name + "] multi match search value is not supported")
}