aboutsummaryrefslogtreecommitdiff
path: root/error.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-02-21 17:14:56 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-02-21 22:57:50 -0700
commit1ad2b99f281d587b767b36f886401e81d17915a9 (patch)
tree7b46bfc96689af14938a9f93aab732e3e46ee709 /error.go
parentMerge pull request #49 from benbjohnson/stat (diff)
downloaddedo-1ad2b99f281d587b767b36f886401e81d17915a9.tar.gz
dedo-1ad2b99f281d587b767b36f886401e81d17915a9.tar.xz
Refactor Transaction/Bucket API.
Diffstat (limited to 'error.go')
-rw-r--r--error.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/error.go b/error.go
index 7238203..36f09a2 100644
--- a/error.go
+++ b/error.go
@@ -16,6 +16,10 @@ var (
// already open.
ErrDatabaseOpen = &Error{"database already open", nil}
+ // ErrTransactionNotWritable is returned changing data using a read-only
+ // transaction.
+ ErrTransactionNotWritable = &Error{"transaction not writable", nil}
+
// ErrBucketNotFound is returned when trying to access a bucket that has
// not been created yet.
ErrBucketNotFound = &Error{"bucket not found", nil}