-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
28 lines (20 loc) · 1.12 KB
/
errors.go
File metadata and controls
28 lines (20 loc) · 1.12 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
package tok
import "errors"
// Sentinel errors for tok pipeline operations.
// Use errors.Is/As for programmatic error handling.
var (
// ErrInputTooLarge is returned when input exceeds the configured max context tokens.
ErrInputTooLarge = errors.New("input exceeds max context tokens")
// ErrConfigInvalid is returned when configuration validation fails.
ErrConfigInvalid = errors.New("config validation failed")
// ErrNoReversibleEntries is returned when no reversible entries are found for decoding.
ErrNoReversibleEntries = errors.New("no reversible entries found")
// ErrHashNotFound is returned when a hash prefix is not found in the reversible map.
ErrHashNotFound = errors.New("hash not found in reversible map")
// ErrCommandUnsafe is returned when a command contains shell meta-characters.
ErrCommandUnsafe = errors.New("command contains unsafe shell meta-characters")
// ErrCacheOpen is returned when the cache database cannot be opened.
ErrCacheOpen = errors.New("failed to open cache database")
// ErrChunkFailed is returned when chunk processing fails.
ErrChunkFailed = errors.New("chunk processing failed")
)