-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
27 lines (17 loc) · 996 Bytes
/
Copy patherrors.go
File metadata and controls
27 lines (17 loc) · 996 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 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")
// 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")