all repos

rss-tools @ a5ac52722b131734c74504b6e6f4d9900536cac7

get rss feed from sources that(i need and) dont provide one

rss-tools/vendor/go.etcd.io/bbolt/errors.go (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
we're vendoring now, 7 days ago
1
package bbolt
2
3
import "go.etcd.io/bbolt/errors"
4
5
// These errors can be returned when opening or calling methods on a DB.
6
var (
7
	// ErrDatabaseNotOpen is returned when a DB instance is accessed before it
8
	// is opened or after it is closed.
9
	//
10
	// Deprecated: Use the error variables defined in the bbolt/errors package.
11
	ErrDatabaseNotOpen = errors.ErrDatabaseNotOpen
12
13
	// ErrInvalid is returned when both meta pages on a database are invalid.
14
	// This typically occurs when a file is not a bolt database.
15
	//
16
	// Deprecated: Use the error variables defined in the bbolt/errors package.
17
	ErrInvalid = errors.ErrInvalid
18
19
	// ErrInvalidMapping is returned when the database file fails to get mapped.
20
	//
21
	// Deprecated: Use the error variables defined in the bbolt/errors package.
22
	ErrInvalidMapping = errors.ErrInvalidMapping
23
24
	// ErrVersionMismatch is returned when the data file was created with a
25
	// different version of Bolt.
26
	//
27
	// Deprecated: Use the error variables defined in the bbolt/errors package.
28
	ErrVersionMismatch = errors.ErrVersionMismatch
29
30
	// ErrChecksum is returned when a checksum mismatch occurs on either of the two meta pages.
31
	//
32
	// Deprecated: Use the error variables defined in the bbolt/errors package.
33
	ErrChecksum = errors.ErrChecksum
34
35
	// ErrTimeout is returned when a database cannot obtain an exclusive lock
36
	// on the data file after the timeout passed to Open().
37
	//
38
	// Deprecated: Use the error variables defined in the bbolt/errors package.
39
	ErrTimeout = errors.ErrTimeout
40
)
41
42
// These errors can occur when beginning or committing a Tx.
43
var (
44
	// ErrTxNotWritable is returned when performing a write operation on a
45
	// read-only transaction.
46
	//
47
	// Deprecated: Use the error variables defined in the bbolt/errors package.
48
	ErrTxNotWritable = errors.ErrTxNotWritable
49
50
	// ErrTxClosed is returned when committing or rolling back a transaction
51
	// that has already been committed or rolled back.
52
	//
53
	// Deprecated: Use the error variables defined in the bbolt/errors package.
54
	ErrTxClosed = errors.ErrTxClosed
55
56
	// ErrDatabaseReadOnly is returned when a mutating transaction is started on a
57
	// read-only database.
58
	//
59
	// Deprecated: Use the error variables defined in the bbolt/errors package.
60
	ErrDatabaseReadOnly = errors.ErrDatabaseReadOnly
61
62
	// ErrFreePagesNotLoaded is returned when a readonly transaction without
63
	// preloading the free pages is trying to access the free pages.
64
	//
65
	// Deprecated: Use the error variables defined in the bbolt/errors package.
66
	ErrFreePagesNotLoaded = errors.ErrFreePagesNotLoaded
67
)
68
69
// These errors can occur when putting or deleting a value or a bucket.
70
var (
71
	// ErrBucketNotFound is returned when trying to access a bucket that has
72
	// not been created yet.
73
	//
74
	// Deprecated: Use the error variables defined in the bbolt/errors package.
75
	ErrBucketNotFound = errors.ErrBucketNotFound
76
77
	// ErrBucketExists is returned when creating a bucket that already exists.
78
	//
79
	// Deprecated: Use the error variables defined in the bbolt/errors package.
80
	ErrBucketExists = errors.ErrBucketExists
81
82
	// ErrBucketNameRequired is returned when creating a bucket with a blank name.
83
	//
84
	// Deprecated: Use the error variables defined in the bbolt/errors package.
85
	ErrBucketNameRequired = errors.ErrBucketNameRequired
86
87
	// ErrKeyRequired is returned when inserting a zero-length key.
88
	//
89
	// Deprecated: Use the error variables defined in the bbolt/errors package.
90
	ErrKeyRequired = errors.ErrKeyRequired
91
92
	// ErrKeyTooLarge is returned when inserting a key that is larger than MaxKeySize.
93
	//
94
	// Deprecated: Use the error variables defined in the bbolt/errors package.
95
	ErrKeyTooLarge = errors.ErrKeyTooLarge
96
97
	// ErrValueTooLarge is returned when inserting a value that is larger than MaxValueSize.
98
	//
99
	// Deprecated: Use the error variables defined in the bbolt/errors package.
100
	ErrValueTooLarge = errors.ErrValueTooLarge
101
102
	// ErrIncompatibleValue is returned when trying create or delete a bucket
103
	// on an existing non-bucket key or when trying to create or delete a
104
	// non-bucket key on an existing bucket key.
105
	//
106
	// Deprecated: Use the error variables defined in the bbolt/errors package.
107
	ErrIncompatibleValue = errors.ErrIncompatibleValue
108
)