aboutsummaryrefslogtreecommitdiff
path: root/error.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-03-08 19:45:56 -0800
committerBen Johnson <benbjohnson@yahoo.com>2014-03-08 19:45:56 -0800
commit4e252b8a7f3df03ff8a079de1e3d7c64f0fcde6d (patch)
tree93ac43914f9cd20c8eea13f18105e55026a7ea8d /error.go
parentMerge pull request #60 from benbjohnson/tx (diff)
parentConsolidate Tx and RWTx. (diff)
downloaddedo-4e252b8a7f3df03ff8a079de1e3d7c64f0fcde6d.tar.gz
dedo-4e252b8a7f3df03ff8a079de1e3d7c64f0fcde6d.tar.xz
Merge pull request #61 from benbjohnson/merge-tx
Consolidate Tx and RWTx
Diffstat (limited to 'error.go')
-rw-r--r--error.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/error.go b/error.go
index 7e879a1..7f867b2 100644
--- a/error.go
+++ b/error.go
@@ -4,7 +4,7 @@ var (
// ErrInvalid is returned when a data file is not a Bolt-formatted database.
ErrInvalid = &Error{"Invalid database", nil}
- // ErrVersionMismatch is returned when the data file was created with a
+ // ErrVersionMismatch is returned when the data file was created with a
// different version of Bolt.
ErrVersionMismatch = &Error{"version mismatch", nil}
@@ -16,6 +16,10 @@ var (
// already open.
ErrDatabaseOpen = &Error{"database already open", nil}
+ // ErrTxNotWritable is returned when performing a write operation on a
+ // read-only transaction.
+ ErrTxNotWritable = &Error{"tx not writable", nil}
+
// ErrBucketNotFound is returned when trying to access a bucket that has
// not been created yet.
ErrBucketNotFound = &Error{"bucket not found", nil}