-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
30 lines (24 loc) · 1.11 KB
/
errors.go
File metadata and controls
30 lines (24 loc) · 1.11 KB
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
28
29
30
package weave
import "errors"
var (
// Store errors.
ErrNoStore = errors.New("weave: no store configured")
ErrStoreClosed = errors.New("weave: store closed")
ErrMigrationFailed = errors.New("weave: migration failed")
// Not found errors.
ErrCollectionNotFound = errors.New("weave: collection not found")
ErrDocumentNotFound = errors.New("weave: document not found")
ErrChunkNotFound = errors.New("weave: chunk not found")
ErrIngestJobNotFound = errors.New("weave: ingest job not found")
// Conflict errors.
ErrCollectionAlreadyExists = errors.New("weave: collection already exists")
ErrDocumentAlreadyExists = errors.New("weave: document already exists")
ErrDuplicateDocument = errors.New("weave: duplicate document (same content hash)")
// State errors.
ErrInvalidState = errors.New("weave: invalid state transition")
ErrEmptyContent = errors.New("weave: empty content")
// Pipeline errors.
ErrNoEmbedder = errors.New("weave: no embedder configured")
ErrNoVectorStore = errors.New("weave: no vector store configured")
ErrNoChunker = errors.New("weave: no chunker configured")
)