diff --git a/db.go b/db.go index af0eb8d..d0e2ccb 100644 --- a/db.go +++ b/db.go @@ -36,6 +36,7 @@ func (e DatabaseError) Error() string { return "levigo: " + string(e) } +// ErrDBClosed is returned by DB.Close when its been called previously. var ErrDBClosed = errors.New("database is closed") // DB is a reusable handle to a LevelDB database on disk, created by Open. diff --git a/iterator.go b/iterator.go index 5c9fde7..ce8091d 100644 --- a/iterator.go +++ b/iterator.go @@ -9,6 +9,7 @@ import ( "unsafe" ) +// IteratorError wraps general internal LevelDB iterator errors for user consumption. type IteratorError string func (e IteratorError) Error() string {