-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherrors.go
More file actions
41 lines (27 loc) · 1.65 KB
/
Copy patherrors.go
File metadata and controls
41 lines (27 loc) · 1.65 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
31
32
33
34
35
36
37
38
39
40
41
package codetrip
import "errors"
// ============ Common Error Definitions ============
// ErrRepoNotFound indicates the repository was not found
var ErrRepoNotFound = errors.New("repo not found")
// ErrNoGraphStore indicates no graph store is available
var ErrNoGraphStore = errors.New("no graph store available")
// ErrSymbolNotFound indicates the symbol was not found
var ErrSymbolNotFound = errors.New("symbol not found")
// ErrRepoAlreadyExists indicates the repository has already been indexed
var ErrRepoAlreadyExists = errors.New("repo already indexed")
// ErrRepoBusy indicates that a repository is currently being indexed.
var ErrRepoBusy = errors.New("repository is busy")
// ErrInvalidRequest indicates an invalid request
var ErrInvalidRequest = errors.New("invalid request")
// ErrTraversalLimitExceeded indicates the traversal exceeded the maximum node visit limit
var ErrTraversalLimitExceeded = errors.New("traversal exceeded maximum node visit limit")
// ErrRepoNotIndexed indicates the repository has not been indexed yet
var ErrRepoNotIndexed = errors.New("repository has not been indexed")
// ErrTaskNotFound indicates that a task lease is unknown to this process.
var ErrTaskNotFound = errors.New("task lease not found")
// ErrTaskExpired indicates that a task lease exceeded its bounded lifetime.
var ErrTaskExpired = errors.New("task lease expired")
// ErrTaskRepositoryMismatch indicates that a task was used for another repo.
var ErrTaskRepositoryMismatch = errors.New("task lease repository mismatch")
// ErrTaskLimitReached indicates that the Engine cannot retain another task snapshot.
var ErrTaskLimitReached = errors.New("task lease limit reached")