diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-31 12:22:58 -0500 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-31 12:22:58 -0500 |
commit | a901cf6a25d301c6c67da3f8f1e51ca2f9c25bd4 (patch) | |
tree | b270b94589bab6b3e39f07886d30b52427b6b23d /error.go | |
parent | Merge pull request #3 from benbjohnson/spill (diff) | |
download | dedo-a901cf6a25d301c6c67da3f8f1e51ca2f9c25bd4.tar.gz dedo-a901cf6a25d301c6c67da3f8f1e51ca2f9c25bd4.tar.xz |
Clean up API.
Diffstat (limited to 'error.go')
-rw-r--r-- | error.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,15 @@ package bolt +var ( + InvalidError = &Error{"Invalid database", nil} + VersionMismatchError = &Error{"version mismatch", nil} + DatabaseNotOpenError = &Error{"db is not open", nil} + DatabaseAlreadyOpenedError = &Error{"db already open", nil} + TransactionInProgressError = &Error{"writable transaction is already in progress", nil} + InvalidTransactionError = &Error{"txn is invalid", nil} + BucketAlreadyExistsError = &Error{"bucket already exists", nil} +) + type Error struct { message string cause error |