-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherrors.go
More file actions
39 lines (27 loc) · 1.63 KB
/
errors.go
File metadata and controls
39 lines (27 loc) · 1.63 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
package ledger
import "errors"
var (
// ErrStoreClosed is returned when operating on a closed store.
ErrStoreClosed = errors.New("ledger: store closed")
// ErrEncode is returned when payload encoding fails.
ErrEncode = errors.New("ledger: encode failed")
// ErrDecode is returned when payload decoding fails.
ErrDecode = errors.New("ledger: decode failed")
// ErrNoUpcaster is returned when no upcaster is available for a version transition.
ErrNoUpcaster = errors.New("ledger: no upcaster available")
// ErrInvalidCursor is returned when a cursor value has an unexpected type.
ErrInvalidCursor = errors.New("ledger: invalid cursor type")
// ErrInvalidName is returned when a table or collection name is invalid.
ErrInvalidName = errors.New("ledger: invalid table/collection name")
// ErrEntryNotFound is returned when SetTags or SetAnnotations targets a non-existent entry.
ErrEntryNotFound = errors.New("ledger: entry not found")
// ErrReadOnly is returned when a write operation is attempted on a read-only stream.
ErrReadOnly = errors.New("ledger: stream is read-only")
// ErrNotSupported is returned when an operation is not supported by the backend.
// ClickHouse and other append-only backends return this for SetTags and SetAnnotations.
ErrNotSupported = errors.New("ledger: operation not supported by this backend")
// ErrStreamNotFound is returned when a named stream does not exist in the metadata store.
ErrStreamNotFound = errors.New("ledger: stream not found")
// ErrStreamExists is returned when a rename target name already exists in the metadata store.
ErrStreamExists = errors.New("ledger: stream already exists")
)