Repository navigation
Expand file tree
/
Copy patherrors.go
More file actions
50 lines (40 loc) · 1.98 KB
/
Copy patherrors.go
File metadata and controls
50 lines (40 loc) · 1.98 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
42
43
44
45
46
47
48
49
50
package shield
import "errors"
// Sentinel errors for the Shield library.
var (
// Store errors.
ErrNoStore = errors.New("shield: no store configured")
ErrStoreClosed = errors.New("shield: store is closed")
ErrMigrateFailed = errors.New("shield: migration failed")
// Entity not-found errors.
ErrScanNotFound = errors.New("shield: scan not found")
ErrPolicyNotFound = errors.New("shield: policy not found")
ErrInstinctNotFound = errors.New("shield: instinct not found")
ErrJudgmentNotFound = errors.New("shield: judgment not found")
ErrAwarenessNotFound = errors.New("shield: awareness not found")
ErrValueNotFound = errors.New("shield: value not found")
ErrReflexNotFound = errors.New("shield: reflex not found")
ErrBoundaryNotFound = errors.New("shield: boundary not found")
ErrProfileNotFound = errors.New("shield: safety profile not found")
ErrPIITokenNotFound = errors.New("shield: pii token not found")
ErrComplianceNotFound = errors.New("shield: compliance report not found")
// Tenancy errors.
ErrTenantRequired = errors.New("shield: tenant is required")
ErrTenantMismatch = errors.New("shield: tenant does not match the context tenant")
// Duplicate errors.
ErrAlreadyExists = errors.New("shield: entity already exists")
// Scan errors.
ErrInputBlocked = errors.New("shield: input blocked by safety scan")
ErrOutputBlocked = errors.New("shield: output blocked by safety scan")
// Engine errors.
ErrNoProfile = errors.New("shield: no safety profile configured")
ErrInvalidConfig = errors.New("shield: invalid configuration")
// Evaluation errors.
ErrProfileInvalid = errors.New("shield: safety profile is invalid")
ErrInputTooLarge = errors.New("shield: input exceeds the scan size limit")
ErrInvalidInput = errors.New("shield: invalid scan input")
// PII errors.
ErrEncryptionKeyMissing = errors.New("shield: pii encryption key not configured")
// State errors.
ErrInvalidState = errors.New("shield: invalid state transition")
)