-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
50 lines (40 loc) · 2.17 KB
/
Copy patherrors.go
File metadata and controls
50 lines (40 loc) · 2.17 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 store
import "errors"
var (
// ErrNotFound is returned when an item or collection does not exist.
ErrNotFound = errors.New("not found")
// ErrAlreadyExists is returned when trying to create something that already exists.
ErrAlreadyExists = errors.New("already exists")
// ErrInvalidID is returned when an invalid ID is provided.
ErrInvalidID = errors.New("invalid id")
// ErrInvalidName is returned when an invalid name is provided.
ErrInvalidName = errors.New("invalid name")
// ErrInvalidItemFile is returned when an item file is malformed.
ErrInvalidItemFile = errors.New("invalid item file")
// ErrChecksumMismatch is returned when integrity verification fails.
ErrChecksumMismatch = errors.New("checksum mismatch")
// ErrQuotaExceeded is returned when a quota is exceeded.
ErrQuotaExceeded = errors.New("quota exceeded")
// ErrWriterClosed is returned when writing to a closed writer.
ErrWriterClosed = errors.New("writer closed")
// ErrUnsupportedRemote is returned when a remote scheme is not supported.
ErrUnsupportedRemote = errors.New("unsupported remote")
// ErrUnauthorized is returned when a remote request is not authorized.
ErrUnauthorized = errors.New("unauthorized")
// ErrUnknownHostKey is returned when the remote host key is not trusted.
ErrUnknownHostKey = errors.New("unknown host key")
// ErrStoreClosed is returned when operating on a closed store.
ErrStoreClosed = errors.New("store is closed")
// ErrInvalidSignature is returned when the store file has an invalid signature.
ErrInvalidSignature = errors.New("invalid store signature")
// ErrInvalidIndexFile is returned when an index file is malformed.
ErrInvalidIndexFile = errors.New("invalid index file")
// ErrEncrypted is returned when trying to open an encrypted store without a password.
ErrEncrypted = errors.New("store is encrypted, password required")
// ErrInvalidPassword is returned when the password is incorrect.
ErrInvalidPassword = errors.New("invalid password")
// ErrReadOnly is returned when trying to write to a read-only store.
ErrReadOnly = errors.New("store is read-only")
// ErrLocked is returned when the store is locked.
ErrLocked = errors.New("store is locked")
)