Repository navigation
Expand file tree
/
Copy patherrors.go
More file actions
37 lines (30 loc) · 1.53 KB
/
Copy patherrors.go
File metadata and controls
37 lines (30 loc) · 1.53 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
package sentinel
import "errors"
var (
// Store errors.
ErrNoStore = errors.New("sentinel: no store configured")
ErrStoreClosed = errors.New("sentinel: store closed")
ErrMigrationFailed = errors.New("sentinel: migration failed")
// Not found errors.
ErrEvaluationPlanNotFound = errors.New("sentinel: evaluation plan not found")
ErrEvaluationPlanExists = errors.New("sentinel: evaluation plan already exists")
ErrSuiteNotFound = errors.New("sentinel: suite not found")
ErrCaseNotFound = errors.New("sentinel: case not found")
ErrRunNotFound = errors.New("sentinel: run not found")
ErrBaselineNotFound = errors.New("sentinel: baseline not found")
ErrPromptVersionNotFound = errors.New("sentinel: prompt version not found")
// Conflict errors.
ErrSuiteAlreadyExists = errors.New("sentinel: suite already exists")
ErrPromptVersionExists = errors.New("sentinel: prompt version already exists")
// State errors.
ErrInvalidState = errors.New("sentinel: invalid state transition")
ErrRunCancelled = errors.New("sentinel: run cancelled")
ErrEmptyInput = errors.New("sentinel: empty input")
// Evaluation errors.
ErrNoTarget = errors.New("sentinel: no target configured")
ErrNoScorers = errors.New("sentinel: no scorers configured")
ErrUnknownTarget = errors.New("sentinel: unknown target")
ErrUnknownScorer = errors.New("sentinel: unknown scorer")
ErrInvalidInput = errors.New("sentinel: invalid input")
ErrUnsupportedFormat = errors.New("sentinel: unsupported format")
)