aboutsummaryrefslogtreecommitdiff
path: root/error.go
diff options
context:
space:
mode:
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}