From 1ad2b99f281d587b767b36f886401e81d17915a9 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Fri, 21 Feb 2014 17:14:56 -0700 Subject: Refactor Transaction/Bucket API. --- error.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'error.go') 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} -- cgit v1.2.3